websoft9/apps/roles/mingdao/files/after_up.sh
2023-03-02 14:17:37 +08:00

9 lines
278 B
Bash

#!/bin/bash
echo "mingdao execute delete mingdao and first" >> /tmp/mingdao.txt
sudo systemctl stop mingdao
sudo docker stop $(docker ps -aq)
sudo docker rm $(docker ps -aq)
rm -rf /data/mingdao
/bin/rm -f /data/apps/mingdao/installer/first
sudo systemctl start mingdao