Files
caprover/dev-scripts/dev-reset-service.sh
2019-01-16 22:27:04 -08:00

11 lines
209 B
Bash
Executable File

#!/bin/sh
if ! [ $(id -u) = 0 ]; then
echo "Must run as sudo or root"
exit 1
fi
sudo docker service update captain-captain --force
sleep 2s
sudo docker service logs captain-captain --follow --since 2m