mirror of
https://github.com/YunoHost-Apps/searx_ynh.git
synced 2024-09-03 20:16:30 +02:00
Delete user only if exists.
This commit is contained in:
parent
991873d35b
commit
e3de44b71d
1 changed files with 3 additions and 2 deletions
|
@ -19,7 +19,8 @@ sudo killall uwsgi
|
|||
sudo service uwsgi start
|
||||
|
||||
# Remove user
|
||||
sudo userdel searx
|
||||
|
||||
if id -u searx > /dev/null 2>&1; then
|
||||
sudo userdel searx
|
||||
fi
|
||||
# Reload Nginx
|
||||
sudo service nginx reload
|
||||
|
|
Loading…
Add table
Reference in a new issue