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