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"