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")