reload_server —git
This commit is contained in:
parent
bd806737e4
commit
da50c134e1
|
@ -26,10 +26,7 @@ def backup_database():
|
|||
def reload_server_git():
|
||||
command = 'bash {}/git_server.sh'.format(SH_PATH)
|
||||
completed = subprocess.run(command, shell=True, capture_output=True, text=True)
|
||||
if completed.returncode == 0:
|
||||
return
|
||||
else:
|
||||
return completed.stdout
|
||||
return completed
|
||||
|
||||
|
||||
@shared_task
|
||||
|
|
Loading…
Reference in New Issue