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