mailiverse/deploy/server-shutdown

10 lines
161 B
Plaintext
Executable File

if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi
source ./config.hosts
server=$M_HOST_PROD
echo stopping...
ssh $1@$server "cd deploy && ./shutdown"