From ea909a42bb7049ecd760ea854a33c7fcbc0f53f8 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Wed, 24 May 2023 09:36:18 +0800 Subject: [PATCH] after_up --- appmanage/api/service/manage.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/appmanage/api/service/manage.py b/appmanage/api/service/manage.py index 2d647863..b8194e48 100644 --- a/appmanage/api/service/manage.py +++ b/appmanage/api/service/manage.py @@ -225,6 +225,10 @@ def install_app_delay(app_name, customer_name, app_version): myLogger.info_logger("-------Install result--------") myLogger.info_logger(output["code"]) myLogger.info_logger(output["result"]) + try: + shell_execute.execute_command_output_all("bash /data/apps/" + customer_name + "/src/after_up.sh") + except Exception as e: + myLogger.info_logger(str(e)) else: error_info= "##websoft9##" + const.ERROR_SERVER_RESOURCE + "##websoft9##" + "Insufficient system resources (cpu, memory, disk space)" + "##websoft9##" + "Insufficient system resources (cpu, memory, disk space)" myLogger.info_logger(error_info)