new
continuous-integration/drone/push Build is passing Details

This commit is contained in:
quackerd 2021-04-22 05:15:51 -04:00
parent 6c0336e548
commit 62b21ef72c
1 changed files with 2 additions and 1 deletions

View File

@ -12,9 +12,10 @@ for filename in confs/*; do
echo "Refreshing $addr..."
ssh -p 77 -o StrictHostKeychecking=no -i ansible/id_root root@$addr -t "docker pull quackerd/d2ray:latest"
set +e
ssh -p 77 -o StrictHostKeychecking=no -i ansible/id_root root@$addr -t "docker stop d2ray"
ssh -p 77 -o StrictHostKeychecking=no -i ansible/id_root root@$addr -t "docker stop d2ray && docker rm d2ray"
set -e
ssh -p 77 -o StrictHostKeychecking=no -i ansible/id_root root@$addr -t "docker run -d \
--restart unless-stopped \
-e KEY=$key \
-e FQDN=$addr \
-p 80:80 \