Просмотр исходного кода

Add certbot and crontab info

master
Josh Mudge 6 лет назад
Родитель
Сommit
251ac72729
  1. 4
      root-crontab.cron
  2. 4
      wordpress-setup.sh

4
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
00 13 * * 0 /home/josh/fs

4
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

Загрузка…
Отмена
Сохранить