1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ampache_ynh.git synced 2024-09-03 18:15:55 +02:00
ampache_ynh/scripts/remove
2014-06-21 18:58:49 +00:00

10 lines
306 B
Bash

#!/bin/bash
db_user=ampache
db_name=ampache
root_pwd=$(sudo cat /etc/yunohost/mysql)
domain=$(sudo yunohost app setting ampache domain)
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
sudo rm -rf /var/www/ampache
sudo rm -f /etc/nginx/conf.d/$domain.d/ampache.conf