websoft9/apps/roles/mingdao/files/after_up.sh

9 lines
273 B
Bash
Raw Normal View History

#!/bin/bash
2023-03-02 14:17:37 +08:00
echo "mingdao execute delete mingdao and first" >> /tmp/mingdao.txt
2023-03-02 10:14:23 +08:00
sudo systemctl stop mingdao
sudo docker stop $(docker ps -aq)
sudo docker rm $(docker ps -aq)
2023-03-01 16:23:20 +08:00
rm -rf /data/mingdao
2023-03-02 14:17:53 +08:00
rm -f /data/apps/mingdao/installer/first
2023-03-02 10:14:23 +08:00
sudo systemctl start mingdao