2013-10-29 14:26:46 +01:00
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
2016-05-14 09:56:38 +02:00
|
|
|
|
# Retreive app settings
|
|
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
|
|
|
domain=$(sudo yunohost app setting $app domain)
|
|
|
|
|
|
|
|
|
|
# Stop service
|
2013-10-29 14:26:46 +01:00
|
|
|
|
sudo service transmission-daemon stop
|
2014-05-29 11:28:16 +02:00
|
|
|
|
sudo yunohost service remove transmission-daemon
|
2013-10-29 14:26:46 +01:00
|
|
|
|
|
2016-05-14 09:56:38 +02:00
|
|
|
|
# Disallow specific port
|
|
|
|
|
sudo yunohost firewall disallow TCP 51413
|
|
|
|
|
|
|
|
|
|
# Remove nginx configuration
|
|
|
|
|
sudo rm /etc/nginx/conf.d/$domain.d/$app.conf
|
|
|
|
|
|
|
|
|
|
# Remove data
|
2013-10-29 14:26:46 +01:00
|
|
|
|
sudo rm -rf /home/yunohost.transmission
|
|
|
|
|
|
2016-05-14 09:56:38 +02:00
|
|
|
|
# Remove Debian package
|
2013-10-29 14:26:46 +01:00
|
|
|
|
sudo apt-get remove -y -qq transmission-daemon
|
2016-05-14 10:40:28 +02:00
|
|
|
|
# sudo rm -rf /usr/share/transmission
|
|
|
|
|
# sudo rm -rf /etc/transmission-daemon/settings.json
|
2013-10-29 14:26:46 +01:00
|
|
|
|
|
2016-05-14 09:56:38 +02:00
|
|
|
|
# Reload nginx and ssowatconf
|
2013-10-29 14:26:46 +01:00
|
|
|
|
sudo service nginx reload
|
|
|
|
|
sudo yunohost app ssowatconf
|