You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
571 B
23 lines
571 B
#!/bin/bash
|
|
|
|
# Source app helpers
|
|
. /usr/share/yunohost/helpers
|
|
|
|
db_user=ffsync
|
|
db_name=ffsync
|
|
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
|
domain=$(ynh_app_setting_get ffsync domain)
|
|
|
|
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
|
|
sudo rm -rf /opt/yunohost/ffsync
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/ffsync.conf
|
|
sudo service ffsync stop
|
|
sudo update-rc.d ffsync remove
|
|
sudo rm /etc/init.d/ffsync
|
|
sudo rm /etc/logrotate.d/ffsync
|
|
sudo yunohost service remove ffsync
|
|
|
|
sudo service nginx reload
|
|
sudo userdel ffsync
|
|
sudo delgroup ffsync
|