1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/transmission_ynh.git synced 2024-09-04 01:46:12 +02:00
transmission_ynh/scripts/remove

25 lines
738 B
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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
# Reload nginx and ssowatconf
sudo service nginx reload
sudo yunohost app ssowatconf