Fixed bugs to create servers

This commit is contained in:
absurdo 2024-03-13 20:42:51 +01:00
parent 92ae8e7d36
commit 44ffe2da55
5 changed files with 144 additions and 8 deletions

View file

@ -1,4 +1,4 @@
#!/opt/pythonenv/bin/python3 -u
#!/usr/bin/python3 -u
import sys, os
import subprocess
@ -32,6 +32,8 @@ user=args.user
json_return={}
print('Updating phpmyadmin...')
if subprocess.call("sudo su %s -s /bin/bash -c 'cd %s && composer update'" % (user, home_user), shell=True) > 0:
json_return['error']=1
json_return['status']=1