1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/searx_ynh.git synced 2024-09-03 20:16:30 +02:00

[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

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