Update install.python3

This commit is contained in:
amidevous
2023-10-21 10:26:35 +02:00
committed by GitHub
parent 4f396a9424
commit 8b5c5071e1
+7 -6
View File
@@ -114,18 +114,19 @@ if __name__ == "__main__":
printc("Installing XUI")
if os.path.exists("./xui.tar.gz"):
os.system('sudo tar -zxvf "./xui.tar.gz" -C "/home/xui/"')
os.system('sudo wget https://raw.githubusercontent.com/amidevous/xtream-ui-ubuntu20.04/master/install-dep.sh -O /root/install-dep.sh && sudo bash /root/install-dep.sh')
os.system('sudo rm -f /root/install-dep.sh')
os.system('sudo wget https://raw.githubusercontent.com/amidevous/xui.one/master/build-php.sh -O /root/build-php.sh && sudo bash /root/build-php.sh')
os.system('cd /root && sudo wget https://raw.githubusercontent.com/amidevous/xtream-ui-ubuntu20.04/master/install-dep.sh -O /root/install-dep.sh && sudo bash /root/install-dep.sh')
os.system('sudo rm -rf /root/install-dep.sh')
os.system('cd /root && sudo wget https://raw.githubusercontent.com/amidevous/xui.one/master/build-php.sh -O /root/build-php.sh && sudo bash /root/build-php.sh')
os.system('sudo rm -rf /root/build-php.sh')
if not os.path.exists("/home/xui/status"):
printc("Failed to extract! Exiting")
sys.exit(1)
elif os.path.exists("./xui_trial.tar.gz"):
os.system('sudo tar -zxvf "./xui_trial.tar.gz" -C "/home/xui/"')
os.system('sudo wget https://raw.githubusercontent.com/amidevous/xtream-ui-ubuntu20.04/master/install-dep.sh -O /root/install-dep.sh && sudo bash /root/install-dep.sh')
os.system('sudo rm -f /root/install-dep.sh')
os.system('sudo wget https://raw.githubusercontent.com/amidevous/xui.one/master/build-php.sh -O /root/build-php.sh && sudo bash /root/build-php.sh')
os.system('cd /root && sudo wget https://raw.githubusercontent.com/amidevous/xtream-ui-ubuntu20.04/master/install-dep.sh -O /root/install-dep.sh && sudo bash /root/install-dep.sh')
os.system('sudo rm -rf /root/install-dep.sh')
os.system('cd /root && sudo wget https://raw.githubusercontent.com/amidevous/xui.one/master/build-php.sh -O /root/build-php.sh && sudo bash /root/build-php.sh')
os.system('sudo rm -rf /root/build-php.sh')
if not os.path.exists("/home/xui/status"):
printc("Failed to extract! Exiting")