Fixed bugs to create servers
This commit is contained in:
parent
92ae8e7d36
commit
44ffe2da55
5 changed files with 144 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue