Remove searx user before restart uwsgi service.
This commit is contained in:
parent
3033c99ebe
commit
70126c6be7
|
@ -13,14 +13,17 @@ sudo rm -f /etc/uwsgi/apps-enabled/$app.ini
|
||||||
sudo rm -f /etc/uwsgi/apps-available/$app.ini
|
sudo rm -f /etc/uwsgi/apps-available/$app.ini
|
||||||
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
|
|
||||||
# Remove services
|
# Stop uwsgi
|
||||||
sudo service uwsgi stop
|
sudo service uwsgi stop
|
||||||
sudo killall uwsgi
|
sudo killall uwsgi
|
||||||
sudo service uwsgi start
|
|
||||||
|
|
||||||
# Remove user
|
# Remove user
|
||||||
if id -u searx > /dev/null 2>&1; then
|
if id -u searx > /dev/null 2>&1; then
|
||||||
sudo userdel searx
|
sudo userdel searx
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Restart uwsgi
|
||||||
|
sudo service uwsgi start
|
||||||
|
|
||||||
# Reload Nginx
|
# Reload Nginx
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
|
|
Loading…
Reference in New Issue