[fix] Be sure to kill attached process before remove user.
This commit is contained in:
parent
70126c6be7
commit
f5bd716b4b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue