From ea109f691a2b91e462ed550bb295a1ddb813cac3 Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Fri, 6 Oct 2017 10:59:36 +0200 Subject: [PATCH] Update remove --- scripts/remove | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 078a5e8..613df29 100644 --- a/scripts/remove +++ b/scripts/remove @@ -8,7 +8,12 @@ full_path=$(sudo yunohost app setting diaspora final_path) sudo service diaspora_ynh stop -mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;" +#================================================= +# 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/diaspora.conf