From 924d9cb451ddbe14a65b6f88c361639a7fcd4c73 Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Fri, 6 Oct 2017 16:31:38 +0200 Subject: [PATCH] Update remove --- scripts/remove | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/remove b/scripts/remove index de9d97f..5a86a72 100644 --- a/scripts/remove +++ b/scripts/remove @@ -7,6 +7,12 @@ name+="calc" domain=$(sudo yunohost app setting $app domain) # Remove nodejs ynh_remove_nodejs +#================================================= +# REMOVE THE MYSQL DATABASE +#================================================= + +# Remove a database if it exists, along with the associated user +ynh_mysql_remove_db $db_name $db_name sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf sudo rm -Rf /var/log/$name/$app.log* sudo update-rc.d $app remove