From 251ac7272982ba3c609d5f305abea2d903cc8d67 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Sun, 18 Mar 2018 20:53:50 -0600 Subject: [PATCH] Add certbot and crontab info --- root-crontab.cron | 4 ++-- wordpress-setup.sh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/root-crontab.cron b/root-crontab.cron index 24c1070..47db8f6 100644 --- a/root-crontab.cron +++ b/root-crontab.cron @@ -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 -00 13 * * 0 /home/josh/fs \ No newline at end of file +00 13 * * 0 /home/josh/fs diff --git a/wordpress-setup.sh b/wordpress-setup.sh index 490034d..724dd42 100644 --- a/wordpress-setup.sh +++ b/wordpress-setup.sh @@ -18,7 +18,7 @@ sudo mv wordpress/* /var/www/website/ sudo add-apt-repository -y ppa:certbot/certbot sudo apt-get update -sudo apt-get install -y python-certbot-nginx +sudo apt-get install -y python-certbot-nginx certbot # user input required 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://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