2014-06-02 13:38:03 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-02-03 16:23:33 +01:00
|
|
|
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
|
2016-02-03 16:23:33 +01:00
|
|
|
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
|