Delete user only if exists.

This commit is contained in:
opi 2016-07-05 12:25:33 +02:00
parent 991873d35b
commit e3de44b71d
1 changed files with 3 additions and 2 deletions

View File

@ -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