Add wordpress helper script

This commit is contained in:
= 2018-01-01 17:40:32 -07:00
parent f1dd9dd042
commit b20c0382d2
1 changed files with 19 additions and 0 deletions

19
wordpress-setup.sh Normal file
View File

@ -0,0 +1,19 @@
#!/bin/bash
# Wordpress install script
# Written by Joshua Mudge
# Ad Mejorem Dei Glorium
version="v1.0"
curl -s "https://gitlab.daplie.com/sysadmin/daplie-snippets/raw/master/dss/setup.sh" | bash
dss --user $USER init
sudo apt-get install nginx unzip php7.0-fpm php-xml php-xmlrpc -y
wget https://wordpress.org/latest.zip
sudo mkdir /var/www/wordpress
unzip latest.zip /var/www/wordpress/
echo "Update Nginx configuration in /etc/nginx/sites-enabled/ with using example configuration."
echo "run: sudo letsencrypt certonly --webroot --webroot-path=/var/www/wordpress -d www.youdomain.com -d yourdomain.com