remove code that stops nginx
This commit is contained in:
@@ -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
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user