Add certbot and crontab info

This commit is contained in:
Josh Mudge 2018-03-18 20:53:50 -06:00
parent a93a49bc23
commit 251ac72729
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,3 @@
0 5 20 * * letsencrypt renew 0 5 20 * * sudo letsencrypt renew --force-renew && sudo service nginx restart
30 12 * * 0 /home/josh/fs 30 12 * * 0 /home/josh/fs
00 13 * * 0 /home/josh/fs 00 13 * * 0 /home/josh/fs

View File

@ -18,7 +18,7 @@ sudo mv wordpress/* /var/www/website/
sudo add-apt-repository -y ppa:certbot/certbot sudo add-apt-repository -y ppa:certbot/certbot
sudo apt-get update sudo apt-get update
sudo apt-get install -y python-certbot-nginx sudo apt-get install -y python-certbot-nginx certbot
# user input required # user input required
echo "run: sudo certbot --authenticator webroot --installer nginx after configuring default_server and root directory" echo "run: sudo certbot --authenticator webroot --installer nginx after configuring default_server and root directory"
@ -40,3 +40,5 @@ echo "Update Nginx configuration in /etc/nginx/sites-enabled/ with using example
#https://askubuntu.com/questions/705458/ubuntu-15-10-mysql-error-1524-unix-socket #https://askubuntu.com/questions/705458/ubuntu-15-10-mysql-error-1524-unix-socket
#https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04 #https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04
# Create root crontab: 0 5 20 * * sudo letsencrypt renew --force-renew && sudo service nginx restart