Update install.python3

This commit is contained in:
amidevous
2023-10-21 12:24:05 +02:00
committed by GitHub
parent 677f57e421
commit bd4ea3b6ed
+12
View File
@@ -114,11 +114,23 @@ if __name__ == "__main__":
printc("Installing XUI") printc("Installing XUI")
if os.path.exists("./xui.tar.gz"): if os.path.exists("./xui.tar.gz"):
os.system('sudo tar -zxvf "./xui.tar.gz" -C "/home/xui/" >/dev/null 2>&1') os.system('sudo tar -zxvf "./xui.tar.gz" -C "/home/xui/" >/dev/null 2>&1')
os.system('cd /root && sudo wget https://raw.githubusercontent.com/amidevous/xui.one/master/install-dep.sh -O /root/install-dep.sh > /dev/null 2>&1')
os.system('cd /root && sudo bash /root/install-dep.sh >/dev/null 2>&1')
os.system('sudo rm -rf /root/install-dep.sh > /dev/null 2>&1')
os.system('cd /root && sudo wget https://raw.githubusercontent.com/amidevous/xui.one/master/build-php.sh -O /root/build-php.sh > /dev/null 2>&1')
os.system('cd /root && sudo bash /root/build-php.sh > /dev/null 2>&1')
os.system('sudo rm -rf /root/build-php.sh > /dev/null 2>&1')
if not os.path.exists("/home/xui/status"): if not os.path.exists("/home/xui/status"):
printc("Failed to extract! Exiting") printc("Failed to extract! Exiting")
sys.exit(1) sys.exit(1)
elif os.path.exists("./xui_trial.tar.gz"): elif os.path.exists("./xui_trial.tar.gz"):
os.system('sudo tar -zxvf "./xui_trial.tar.gz" -C "/home/xui/" > /dev/null 2>&1') os.system('sudo tar -zxvf "./xui_trial.tar.gz" -C "/home/xui/" > /dev/null 2>&1')
os.system('cd /root && sudo wget https://raw.githubusercontent.com/amidevous/xui.one/master/install-dep.sh -O /root/install-dep.sh > /dev/null 2>&1')
os.system('cd /root && sudo bash /root/install-dep.sh >/dev/null 2>&1')
os.system('sudo rm -rf /root/install-dep.sh > /dev/null 2>&1')
os.system('cd /root && sudo wget https://raw.githubusercontent.com/amidevous/xui.one/master/build-php.sh -O /root/build-php.sh > /dev/null 2>&1')
os.system('cd /root && sudo bash /root/build-php.sh > /dev/null 2>&1')
os.system('sudo rm -rf /root/build-php.sh > /dev/null 2>&1')
if not os.path.exists("/home/xui/status"): if not os.path.exists("/home/xui/status"):
printc("Failed to extract! Exiting") printc("Failed to extract! Exiting")
sys.exit(1) sys.exit(1)