mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-11-19 22:42:24 -05:00
add certbot and web deployment scripts
This commit is contained in:
parent
e84c84db6b
commit
04d0489e57
3 changed files with 55 additions and 0 deletions
21
deploy-certbot
Executable file
21
deploy-certbot
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
. shared.sh
|
||||
. hosts.sh
|
||||
|
||||
for host in ${hosts_certbot[@]}; do
|
||||
remote=root@$host
|
||||
|
||||
echo
|
||||
echo $host
|
||||
echo
|
||||
|
||||
rsync etc/logrotate.d/letsencrypt $remote:/etc/logrotate.d/
|
||||
rsync -r etc/systemd/system/certbot-renew.service.d/ $remote:/etc/systemd/system/certbot-renew.service.d/
|
||||
|
||||
ssh $remote "systemctl daemon-reload &&
|
||||
systemctl enable --now certbot-renew.timer &&
|
||||
mkdir -vp /srv/certbot &&
|
||||
chmod -c 750 /srv/certbot &&
|
||||
chown -c root:http /srv/certbot"
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue