blob: 73900cc538c77f5865997611851049062d99b630 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#! /usr/bin/env sh
set -e
check=true
if [ "$1" = "--no-check" ]; then
check=false
shift 1
fi
if [ "$#" -eq 0 ]; then
set -- server2 server3
fi
set -x
[ "$check" = true ] && check.sh
deploy --skip-checks --boot --interactive-sudo true
for host in "$@"; do
ssh -t "$USER@$host.vhack.eu" 'set -x; sudo reboot'
done
set +x
# Give the servers some time to reboot
sleep 5
ping_hosts.sh "$USER" "$@"
# vim: ft=sh
|