2017-07-15 11:39:52 +02:00
|
|
|
#!/bin/bash
|
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
|
|
|
|
sudo rm -rf /home/flood
|
2017-07-15 11:39:52 +02: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
|