mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
Update and rename mingdao.service to sys.sh
This commit is contained in:
parent
1959c785b1
commit
df17f46f63
@ -1,9 +0,0 @@
|
||||
[Unit]
|
||||
Description=mingdao service
|
||||
After=network.target
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/bin/bash /data/apps/mingdao/installer/service.sh start
|
||||
ExecStop=-/usr/bin/pkill mingdaoyun
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
13
apps/roles/mingdao/files/sys.sh
Normal file
13
apps/roles/mingdao/files/sys.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/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