mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-11-19 22:42:24 -05:00
add script for deploying certbot replication setup
This commit is contained in:
parent
e6db6a15e6
commit
f9430a1aeb
4 changed files with 43 additions and 0 deletions
16
deploy-primary
Executable file
16
deploy-primary
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
. shared.sh
|
||||
. hosts.sh
|
||||
|
||||
for host in ${hosts_primary[@]}; do
|
||||
remote=root@$host
|
||||
|
||||
echo
|
||||
echo $host
|
||||
echo
|
||||
|
||||
rsync --chmod=F755 certbot-replicate $remote:/usr/local/bin/
|
||||
rsync etc/systemd/system/certbot-renew.service.d/replicate.conf $remote:/etc/systemd/system/certbot-renew.service.d/
|
||||
ssh $remote systemctl daemon-reload
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue