machine-setup/install-nginx.sh

9 lines
242 B
Bash

# setup nginx
apt install nginx -y
# setup certbot
add-apt-repository ppa:certbot/certbot -y
apt update -y
apt install python-certbot-nginx -y
crontab -l | { cat; echo "0 12 * * * /usr/bin/certbot renew --quiet"; } | crontab -
echo "done!"