diff --git a/scripts/remove b/scripts/remove index fef4472..a282c07 100644 --- a/scripts/remove +++ b/scripts/remove @@ -40,13 +40,6 @@ then yunohost service remove $app fi -#================================================= -# REMOVE DEPENDENCIES -#================================================= - -# Remove metapackage and its dependencies -ynh_remove_app_dependencies - #================================================= # REMOVE THE MONGO DATABASE #================================================= @@ -56,6 +49,13 @@ mongo -u $dbuser -p$dbpass --authenticationDatabase $dbname --shell "$dbname" -- mongo -u $dbuser -p$dbpass --authenticationDatabase $dbname --shell "$dbname" --eval 'db.dropDatabase();' <<< exit #mongo --shell "$dbname" --eval 'db.dropDatabase();' <<< exit +#================================================= +# REMOVE DEPENDENCIES +#================================================= + +# Remove metapackage and its dependencies +ynh_remove_app_dependencies + #================================================= # REMOVE APP MAIN DIR #=================================================