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

20 lines
486 B
Text
Raw Normal View History

2014-06-02 13:38:03 +02:00
#!/bin/bash
app=linuxdash
2016-02-03 16:48:44 +01:00
domain=$(sudo yunohost app setting $app domain)
2014-06-02 13:38:03 +02:00
2016-02-03 12:59:58 +01:00
# 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
2016-02-03 12:59:58 +01:00
2016-02-03 16:48:44 +01:00
# Remove supervisor package
# Need to be manage with future manifest/moulinette Debian package management
# sudo apt-get -y -qq remove supervisor
2016-02-03 12:59:58 +01:00
# Reload nginx configuration
sudo service nginx reload