Update install.python3

This commit is contained in:
amidevous
2023-10-21 11:32:48 +02:00
committed by GitHub
parent 4af2a1e780
commit 3c6448193d
+4
View File
@@ -234,12 +234,16 @@ if __name__ == "__main__":
os.system("sudo mount -a >/dev/null 2>&1") os.system("sudo mount -a >/dev/null 2>&1")
os.system("sudo chown xui:xui -R /home/xui >/dev/null 2>&1") os.system("sudo chown xui:xui -R /home/xui >/dev/null 2>&1")
time.sleep(60)
os.system("sudo systemctl daemon-reload") os.system("sudo systemctl daemon-reload")
time.sleep(60)
os.system("sudo systemctl start xuione") os.system("sudo systemctl start xuione")
time.sleep(10) time.sleep(10)
os.system("sudo /home/xui/status 1") os.system("sudo /home/xui/status 1")
time.sleep(60)
os.system("sudo /home/xui/bin/php/bin/php /home/xui/includes/cli/startup.php >/dev/null 2>&1") os.system("sudo /home/xui/bin/php/bin/php /home/xui/includes/cli/startup.php >/dev/null 2>&1")
time.sleep(60)
rFile = io.open(rPath + "/credentials.txt", "w", encoding="utf-8") rFile = io.open(rPath + "/credentials.txt", "w", encoding="utf-8")
rFile.write("MySQL Username: %s\nMySQL Password: %s" % (rUsername, rPassword)) rFile.write("MySQL Username: %s\nMySQL Password: %s" % (rUsername, rPassword))