mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
Update and rename sys.sh to after_up.sh
This commit is contained in:
parent
df17f46f63
commit
702516fca0
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 New Issue
Block a user