mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-11-18 06:01:28 -05:00
17 lines
321 B
Bash
Executable file
17 lines
321 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -o errexit -o nounset -o pipefail
|
|
|
|
status=0
|
|
|
|
for mirror in $(cat /etc/mirrors); do
|
|
echo
|
|
echo Deploying to $mirror
|
|
echo
|
|
|
|
rsync -acv --delete --fsync --preallocate /etc/letsencrypt/ $mirror:/etc/letsencrypt &&
|
|
ssh root@$mirror nginx -s reload ||
|
|
status=1
|
|
done
|
|
|
|
exit $status
|