Skip to content
Snippets Groups Projects
Commit f71f6d7c authored by Bob Mottram's avatar Bob Mottram
Browse files

Kill ports before restarting nginx

parent c393acfc
No related branches found
No related tags found
No related merge requests found
......@@ -252,10 +252,6 @@ if [ -d /etc/tor ]; then
systemctl restart tor
fi
fi
if [ -d /etc/nginx ]; then
systemctl restart php7.0-fpm
systemctl restart nginx
fi
if [ -f /etc/init.d/spamassassin ]; then
systemctl restart spamassassin
fi
......@@ -278,4 +274,9 @@ if [ -d /etc/postgresql ]; then
systemctl restart postgresql
fi
fuser -k 80/tcp
fuser -k 443/tcp
systemctl restart php7.0-fpm
systemctl restart nginx
exit 0
......@@ -132,13 +132,6 @@ fi
# If logging was left on then turn it off
${PROJECT_NAME}-logging off
# This is a hack to fix nginx failures which happen sometimes
# when matrix is installed
if [ -d /etc/matrix ]; then
systemctl restart matrix
systemctl restart nginx
fi
# upgrading file prevents USB canary from activating
if [ -f /tmp/.upgrading ]; then
rm /tmp/.upgrading
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment