mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 23:50:31 +00:00
Update and rename sys.sh to after_up.sh
This commit is contained in:
parent
df17f46f63
commit
702516fca0
2 changed files with 5 additions and 13 deletions
5
apps/roles/mingdao/files/after_up.sh
Normal file
5
apps/roles/mingdao/files/after_up.sh
Normal 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
|
|
@ -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
|
Loading…
Reference in a new issue