mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 01:50:19 +08:00
Update manage.py
This commit is contained in:
parent
747b9ff0eb
commit
be79cef60e
@ -142,9 +142,11 @@ def delete_app_failedjob(app_id):
|
||||
def uninstall_app(app_id):
|
||||
code, message = docker.check_appid_include_rq(app_id)
|
||||
if code == None:
|
||||
app_name = split_app_id(app_id)
|
||||
app_name = app_id.split('_')[0]
|
||||
info, code_exist = app_exits_in_docker(app_id)
|
||||
if code_exist:
|
||||
myLogger.info_logger("code_exist")
|
||||
myLogger.info_logger(code_exist)
|
||||
if code_exist:
|
||||
app_path = info.split()[-1].rsplit('/', 1)[0]
|
||||
cmd = "docker compose -f " + app_path + "/docker-compose.yml down -v"
|
||||
lib_path = '/data/library/apps/' + app_name
|
||||
@ -155,7 +157,6 @@ def uninstall_app(app_id):
|
||||
delete_app_failedjob(app_id)
|
||||
else:
|
||||
raise CommandException(code, message, "")
|
||||
return ret
|
||||
|
||||
def check_app(app_name, customer_name, app_version):
|
||||
message = ""
|
||||
|
Loading…
Reference in New Issue
Block a user