machine-setup/install-nginx.sh
2020-11-05 00:27:14 +01:00

9 lines
242 B
Bash
Executable file

# 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!"