Update certbot command + add more comments for documentation.

This commit is contained in:
= 2018-01-27 17:19:13 -07:00
parent 550a3f2541
commit b33143ea71
1 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@
# Wordpress install script
# Written by Joshua Mudge
# Ad Mejorem Dei Glorium
version="v1.0.2"
version="v1.0.3"
curl -s "https://gitlab.daplie.com/sysadmin/daplie-snippets/raw/master/dss/setup.sh" | bash
@ -14,17 +14,18 @@ sudo apt-get install nginx unzip php7.0-fpm php-xml php-xmlrpc software-properti
wget https://wordpress.org/latest.zip
sudo mkdir /var/www/wordpress
unzip latest.zip
sudo mv wordpress/* /var/www/wordpress/
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
# user input required
echo "run: sudo certbot --nginx after configuring default_server"
echo "run: sudo certbot --authenticator webroot --installer nginx after configuring default_server and root directory"
#echo "run: sudo certbot certonly --webroot --webroot-path=/var/www/wordpress -d www.youdomain.com -d yourdomain.com"
echo "Update Nginx configuration in /etc/nginx/sites-enabled/ with using example configuration."
# Change Table prefix if multiple sites.
# For uploading: sudo chown -R www-data:www-data /var/www/dir
#mysql -u root mysql -p CREATE DATABASE ideside; CREATE USER 'ideuser'@'localhost' IDENTIFIED BY 'yourpassword'; GRANT ALL PRIVILEGES ON ideside.* TO 'ideuser'@'localhost'; FLUSH PRIVILEGES;
# mysql -u root mysql -p