mirror of
https://github.com/YunoHost-Apps/searx_ynh.git
synced 2024-09-03 20:16:30 +02:00
29 lines
548 B
Bash
29 lines
548 B
Bash
#!/bin/bash
|
|
app="searx"
|
|
|
|
# Source app helpers
|
|
. /usr/share/yunohost/helpers
|
|
|
|
# Retrieve arguments
|
|
domain=$(ynh_app_setting_get "$app" domain)
|
|
|
|
# Remove files
|
|
sudo rm -Rf /opt/yunohost/$app
|
|
sudo rm -f /etc/uwsgi/apps-enabled/$app.ini
|
|
sudo rm -f /etc/uwsgi/apps-available/$app.ini
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
|
|
|
# Stop uwsgi
|
|
sudo service uwsgi stop
|
|
sudo killall uwsgi
|
|
|
|
# Remove user
|
|
if id -u searx > /dev/null 2>&1; then
|
|
sudo userdel searx
|
|
fi
|
|
|
|
# Restart uwsgi
|
|
sudo service uwsgi start
|
|
|
|
# Reload Nginx
|
|
sudo service nginx reload
|