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:
parent
70126c6be7
commit
f5bd716b4b
1 changed files with 3 additions and 2 deletions
|
@ -17,9 +17,10 @@ sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
sudo service uwsgi stop
|
sudo service uwsgi stop
|
||||||
sudo killall uwsgi
|
sudo killall uwsgi
|
||||||
|
|
||||||
# Remove user
|
# Remove user (kill attached process before)
|
||||||
if id -u searx > /dev/null 2>&1; then
|
if id -u searx > /dev/null 2>&1; then
|
||||||
sudo userdel searx
|
sudo killall -KILL -u searx
|
||||||
|
sudo userdel --force searx
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restart uwsgi
|
# Restart uwsgi
|
||||||
|
|
Loading…
Add table
Reference in a new issue