Update deploy.sh
This commit is contained in:
parent
2eda15b0ac
commit
1cda146fa2
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user