mirror of
https://github.com/YunoHost-Apps/ffsync_ynh.git
synced 2024-09-03 18:26:38 +02:00
11 lines
307 B
Text
11 lines
307 B
Text
|
#!/bin/bash
|
||
|
|
||
|
db_user=wordpress
|
||
|
db_name=wordpress
|
||
|
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
||
|
domain=$(sudo yunohost app setting ffsync domain)
|
||
|
|
||
|
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
|
||
|
sudo rm -rf /var/www/ffsync
|
||
|
sudo rm -f /etc/nginx/conf.d/$domain.d/ffsync.conf
|