mirror of
https://github.com/YunoHost-Apps/opensondage_ynh.git
synced 2024-09-03 19:46:28 +02:00
10 lines
326 B
Bash
Executable file
10 lines
326 B
Bash
Executable file
#!/bin/bash
|
|
|
|
db_user=opensondage
|
|
db_name=opensondage
|
|
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
|
domain=$(sudo yunohost app setting opensondage domain)
|
|
|
|
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
|
|
sudo rm -rf /var/www/opensondage
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/opensondage.conf
|