mirror of
https://github.com/YunoHost-Apps/agendav_ynh.git
synced 2024-09-03 20:36:12 +02:00
11 lines
335 B
Bash
11 lines
335 B
Bash
#!/bin/bash
|
|
|
|
db_user=agendav
|
|
db_name=agendav
|
|
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
|
domain=$(sudo yunohost app setting agendav domain)
|
|
|
|
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
|
|
sudo rm -rf /var/www/agendav
|
|
sudo rm -rf /var/log/agendav
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/agendav.conf
|