Update and rename sys.sh to after_up.sh

This commit is contained in:
Darren 2023-03-01 16:22:47 +08:00 committed by GitHub
parent df17f46f63
commit 702516fca0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 13 deletions

View file

@ -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

View file

@ -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