From f331b643b5045a2867ea29e5398b67a66c44690f Mon Sep 17 00:00:00 2001 From: polytan02 Date: Fri, 24 Feb 2017 23:47:34 +0000 Subject: [PATCH] missing domain paramater --- scripts/remove | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 1ccc94b..a914b30 100644 --- a/scripts/remove +++ b/scripts/remove @@ -1,7 +1,6 @@ #!/bin/bash # Exit on command errors and treat unset variables as an error - app=$YNH_APP_INSTANCE_NAME # Source app helpers source /usr/share/yunohost/helpers @@ -59,6 +58,10 @@ REMOVE_BDD () { # Suppression de la base de donnée et de l'utilisateur associé fi } +# Retrieve parameters + app=$YNH_APP_INSTANCE_NAME + domain=$(ynh_app_setting_get "$app" domain) + # Drop MySQL database and user REMOVE_BDD "$app"