Update install.python3

This commit is contained in:
amidevous
2023-10-21 12:13:01 +02:00
committed by GitHub
parent 88f5d83772
commit 677f57e421
-12
View File
@@ -114,23 +114,11 @@ if __name__ == "__main__":
printc("Installing XUI")
if os.path.exists("./xui.tar.gz"):
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"):
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/" > /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"):
printc("Failed to extract! Exiting")
sys.exit(1)