1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00

Update remove

This commit is contained in:
ericgaspar 2021-06-30 16:30:55 +02:00
parent e711d22c32
commit 9ba00db02d
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -44,13 +44,12 @@ ynh_script_progression --message="Stopping and removing the systemd service..."
ynh_remove_systemd_config ynh_remove_systemd_config
#================================================= #=================================================
# REMOVE THE MYSQL DATABASE # REMOVE THE MONGODB DATABASE
#================================================= #=================================================
ynh_script_progression --message="Removing the Mongodb database..." --weight=1 ynh_script_progression --message="Removing the MongoDB database..."
# Remove a database if it exists, along with the associated user
# remove database!!! ynh_mongo_remove_db --db_user=$db_user --db_name=$db_name
mongo $app --eval "db.dropDatabase()"
#================================================= #=================================================
# REMOVE DEPENDENCIES # REMOVE DEPENDENCIES
@ -59,6 +58,8 @@ ynh_script_progression --message="Removing dependencies..." --weight=1
# Remove metapackage and its dependencies # Remove metapackage and its dependencies
ynh_remove_app_dependencies ynh_remove_app_dependencies
ynh_remove_nodejs
ynh_remove_mongo
#================================================= #=================================================
# REMOVE APP MAIN DIR # REMOVE APP MAIN DIR