Update deploy.sh

This commit is contained in:
12nick12 2020-01-12 14:59:56 -05:00 committed by GitHub
parent 2eda15b0ac
commit 1cda146fa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ read -p "If SSL type ssl otherwise don't: " siteProtoIn
read -p "Enter Site URL: " siteURL read -p "Enter Site URL: " siteURL
read -p "Enter WPAdmin email: " adminEmail read -p "Enter WPAdmin email: " adminEmail
if [[ siteProtoIn == "ssl" ]]; then if [[ $siteProtoIn == "ssl" ]]; then
siteProto="https://" siteProto="https://"
ssl=1 ssl=1
fi fi
@ -221,7 +221,7 @@ nginx-conf
ln -s ${siteFile} /etc/nginx/sites-enabled/ ln -s ${siteFile} /etc/nginx/sites-enabled/
nginx -t nginx -t
read -p "Would you like to reload nginx to take new changes?: [y/n]" yy read -p "Would you like to reload nginx to take new changes?: [y/n]" yy
if [ yy == "y" ]; then if [ $yy == "y" ]; then
echo "reloading nginx" echo "reloading nginx"
systemctl reload nginx systemctl reload nginx
fi fi