blob: aab07d5550f389a8fb5f7663d64182900917f74c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
set -o errexit -o nounset -o pipefail
status=0
replicas=({1..3}.grapheneos.org)
for replica in ${replicas[@]}; do
echo
echo Deploying to $replica
echo
rsync -rpcvl --delete --fsync --preallocate /etc/letsencrypt/ $replica:/etc/letsencrypt &&
rsync -rpcvl --delete --fsync --preallocate /var/cache/certbot-ocsp-fetcher/ $replica:/var/cache/certbot-ocsp-fetcher &&
ssh root@$replica nginx -s reload ||
status=1
done
exit $status
|