mirror of
https://github.com/YunoHost-Apps/transmission_ynh.git
synced 2024-09-04 01:46:12 +02:00
26 lines
620 B
Bash
26 lines
620 B
Bash
#!/bin/bash
|
||
|
||
# Retreive app settings
|
||
app=$YNH_APP_INSTANCE_NAME
|
||
domain=$(sudo yunohost app setting $app domain)
|
||
|
||
# Stop service
|
||
sudo service transmission-daemon stop
|
||
sudo yunohost service remove transmission-daemon
|
||
|
||
# Disallow specific port
|
||
sudo yunohost firewall disallow TCP 51413
|
||
|
||
# Remove nginx configuration
|
||
sudo rm /etc/nginx/conf.d/$domain.d/$app.conf
|
||
|
||
# Remove data
|
||
sudo rm -rf /home/yunohost.transmission
|
||
|
||
# Remove Debian package
|
||
sudo apt-get remove -y -qq transmission-daemon
|
||
# sudo rm -rf /usr/share/transmission
|
||
# sudo rm -rf /etc/transmission-daemon/settings.json
|
||
|
||
# Reload nginx
|
||
sudo service nginx reload
|