2014-08-07 02:57:24 +02:00
|
|
|
#!/bin/bash
|
|
|
|
domain=$(sudo yunohost app setting seafile domain)
|
|
|
|
|
2014-08-07 04:42:27 +02:00
|
|
|
cd /var/www/seafile/seafile-server-*
|
|
|
|
sudo ./seafile.sh stop
|
|
|
|
sudo ./seahub.sh stop
|
|
|
|
|
2014-08-07 02:57:24 +02:00
|
|
|
sudo rm -rf /var/www/seafile
|
2014-08-12 03:18:09 +02:00
|
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/seafile.conf
|
|
|
|
sudo rm -f /etc/init.d/seafile-server
|
2014-08-13 03:21:47 +02:00
|
|
|
sudo rm -f /etc/init/seafile-server.conf
|
|
|
|
|
2014-08-15 02:22:39 +02:00
|
|
|
ccnet_port=$(sudo yunohost app setting seafile ccnet_port)
|
|
|
|
seafile_port=$(sudo yunohost app setting seafile seafile_port)
|
|
|
|
seahub_port=$(sudo yunohost app setting seafile seahub_port)
|
|
|
|
|
2014-08-15 03:10:10 +02:00
|
|
|
sudo yunohost firewall disallow $ccnet_port
|
|
|
|
sudo yunohost firewall disallow $seafile_port
|
|
|
|
sudo yunohost firewall disallow $seahub_port
|