[fix] Be sure to kill attached process before remove user.

This commit is contained in:
opi 2016-07-07 10:38:24 +02:00
parent 70126c6be7
commit f5bd716b4b
1 changed files with 3 additions and 2 deletions

View File

@ -17,9 +17,10 @@ sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
sudo service uwsgi stop
sudo killall uwsgi
# Remove user
# Remove user (kill attached process before)
if id -u searx > /dev/null 2>&1; then
sudo userdel searx
sudo killall -KILL -u searx
sudo userdel --force searx
fi
# Restart uwsgi