From 702516fca0a37fd8e19afa9d6f22af9a243502a5 Mon Sep 17 00:00:00 2001 From: Darren <27513732@qq.com> Date: Wed, 1 Mar 2023 16:22:47 +0800 Subject: [PATCH] Update and rename sys.sh to after_up.sh --- apps/roles/mingdao/files/after_up.sh | 5 +++++ apps/roles/mingdao/files/sys.sh | 13 ------------- 2 files changed, 5 insertions(+), 13 deletions(-) create mode 100644 apps/roles/mingdao/files/after_up.sh delete mode 100644 apps/roles/mingdao/files/sys.sh diff --git a/apps/roles/mingdao/files/after_up.sh b/apps/roles/mingdao/files/after_up.sh new file mode 100644 index 00000000..ec4d0dfa --- /dev/null +++ b/apps/roles/mingdao/files/after_up.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +/bin/rm -f /usr/local/MDPrivateDeployment/first +/bin/bash /usr/local/MDPrivateDeployment/service.sh stopall +/bin/bash /usr/local/MDPrivateDeployment/service.sh start diff --git a/apps/roles/mingdao/files/sys.sh b/apps/roles/mingdao/files/sys.sh deleted file mode 100644 index ba5bcf2a..00000000 --- a/apps/roles/mingdao/files/sys.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -if [[ -f /usr/local/MDPrivateDeployment/first ]];then - rm -rf /data/mingdao/ - /bin/rm -f /usr/local/MDPrivateDeployment/first - /bin/bash /usr/local/MDPrivateDeployment/service.sh stopall - /bin/bash /usr/local/MDPrivateDeployment/service.sh start -else - sleep 30 - docker system prune -f - /bin/bash /usr/local/MDPrivateDeployment/service.sh stopall - /bin/bash /usr/local/MDPrivateDeployment/service.sh startall -fi