remove code that stops nginx

This commit is contained in:
Girish Ramakrishnan
2016-10-24 14:41:26 -07:00
parent 37185b1058
commit c8a04f8707
2 changed files with 1 additions and 7 deletions
-1
View File
@@ -172,7 +172,6 @@ echo "==== Install nginx ===="
apt-get -y install nginx-full
[[ "$(nginx -v 2>&1)" == *"nginx/1.10."* ]] || die "Expecting nginx version to be 1.10.x"
systemctl disable nginx
systemctl stop nginx
echo "==== Install build-essential ===="
apt-get -y install build-essential rcconf
+1 -6
View File
@@ -228,12 +228,7 @@ systemctl start cloudron.target
sleep 2 # give systemd sometime to start the processes
set_progress "85" "Reloading nginx"
if systemctl is-enabled nginx; then
nginx -s reload
else
systemctl enable nginx
systemctl start nginx
fi
nginx -s reload
set_progress "100" "Done"