mirror of
https://github.com/YunoHost-Apps/baikal_ynh.git
synced 2024-09-03 18:16:11 +02:00
14 lines
378 B
Bash
14 lines
378 B
Bash
#!/bin/bash
|
|
|
|
db_user=baikal
|
|
db_name=baikal
|
|
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
|
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
|
|
|
|
# Removing executable files
|
|
sudo rm -rf /var/www/baikal
|
|
domain=$(sudo yunohost app setting baikal domain)
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/baikal.conf
|
|
|
|
# Restarting services
|
|
sudo service nginx reload
|