2017-07-15 11:39:52 +02:00
|
|
|
#!/bin/bash
|
2017-07-19 22:40:20 +02:00
|
|
|
|
|
|
|
|
2017-07-18 22:58:27 +02:00
|
|
|
domain=$(sudo yunohost app setting flood domain)
|
|
|
|
data_dir=$(sudo yunohost app setting flood data_dir)
|
2017-07-15 11:39:52 +02:00
|
|
|
|
2017-07-18 22:58:27 +02:00
|
|
|
sudo service rtorrent stop
|
|
|
|
sudo service flood stop
|
2017-07-15 11:39:52 +02:00
|
|
|
|
2017-07-18 22:58:27 +02:00
|
|
|
sudo rm -rf $data_dir
|
|
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/flood.conf
|
|
|
|
sudo rm -f /etc/systemd/system/flood.service
|
|
|
|
sudo rm -f /etc/systemd/system/rtorrent.service
|
2017-07-15 11:39:52 +02:00
|
|
|
|
2017-07-18 22:58:27 +02:00
|
|
|
# Remove the user
|
|
|
|
sudo userdel -f flood
|
2017-07-19 22:40:20 +02:00
|
|
|
sudo rm -rf /var/www/flood
|
2017-07-15 11:39:52 +02:00
|
|
|
|
2017-11-19 23:01:10 +01:00
|
|
|
# Close ports
|
2018-02-11 18:32:24 +01:00
|
|
|
sudo yunohost firewall disallow TCP 45069
|
2017-11-19 23:01:10 +01:00
|
|
|
|
2017-07-18 22:58:27 +02:00
|
|
|
# Remove the service
|
|
|
|
sudo yunohost service remove flood
|
|
|
|
sudo yunohost service remove rtorrent
|
2017-07-15 11:39:52 +02:00
|
|
|
|
2017-07-18 22:58:27 +02:00
|
|
|
# Remove rtorrent
|
|
|
|
sudo rm -f /usr/local/bin/rtorrent
|
2017-07-15 11:39:52 +02:00
|
|
|
|
2017-07-18 22:58:27 +02:00
|
|
|
sudo yunohost app ssowatconf
|
|
|
|
sudo service nginx reload
|