Delete user only if exists.
This commit is contained in:
parent
991873d35b
commit
e3de44b71d
|
@ -19,7 +19,8 @@ sudo killall uwsgi
|
||||||
sudo service uwsgi start
|
sudo service uwsgi start
|
||||||
|
|
||||||
# Remove user
|
# Remove user
|
||||||
sudo userdel searx
|
if id -u searx > /dev/null 2>&1; then
|
||||||
|
sudo userdel searx
|
||||||
|
fi
|
||||||
# Reload Nginx
|
# Reload Nginx
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
|
|
Loading…
Reference in New Issue