scripts/expand-cert

8 lines
321 B
Bash
Executable file

#!/usr/bin/bash
# Expand the certificate
echo exozy.me {calc,chat,cloud,code,desk,game,git,media,office,server,social,ta180m,tube,www}.exozy.me | sed "s/ /,/g" | xargs sudo certbot certonly --nginx --expand -n -d
# Give the LDAP user permission to access them
sudo setfacl -R -m user:ldap:r-x /etc/letsencrypt/archive/