From 8b5c5071e1c04b5742ebbbb10fc93204cc9015e0 Mon Sep 17 00:00:00 2001 From: amidevous Date: Sat, 21 Oct 2023 10:26:35 +0200 Subject: [PATCH] Update install.python3 --- install.python3 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/install.python3 b/install.python3 index 3e4542b..4719bd9 100644 --- a/install.python3 +++ b/install.python3 @@ -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")