diff --git a/scripts/remove b/scripts/remove index ca7474d..f345793 100644 --- a/scripts/remove +++ b/scripts/remove @@ -19,6 +19,9 @@ domain=$(ynh_app_setting_get $app domain) port=$(ynh_app_setting_get $app port) final_path=$(ynh_app_setting_get $app final_path) +db_name=$(ynh_app_setting_get $app db_name) +db_user=$db_name + #================================================= # STANDARD REMOVE #================================================= @@ -32,6 +35,13 @@ ynh_package_remove pufferd # Remove metapackage and its dependencies #ynh_remove_app_dependencies +#================================================= +# REMOVE THE MYSQL DATABASE +#================================================= + +# Remove a database if it exists, along with the associated user +ynh_mysql_remove_db $db_user $db_name + #================================================= # REMOVE APP MAIN DIR #=================================================