1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/linuxdash_ynh.git synced 2024-09-03 19:36:07 +02:00
linuxdash_ynh/scripts/remove

15 lines
344 B
Bash
Executable file

#!/bin/bash
app=linuxdash
domain=$(sudo yunohost app setting linuxdash domain)
# Remove sources and nginx configuration
sudo rm -rf /var/www/$app
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
# Remove service
sudo supervisorctl stop $app
sudo rm -f /etc/supervisor/conf.d/$app.conf
# Reload nginx configuration
sudo service nginx reload