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

Merge pull request #110 from YunoHost-Apps/testing

Properly remove service integration in Buster
This commit is contained in:
yalh76 2021-02-15 22:21:13 +01:00 committed by GitHub
commit 9e698d094c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 5 deletions

View file

@ -22,6 +22,8 @@
upgrade=1 from_commit=c2b4715e8591031f3054cedb1220e7619607bb36
# 4.43~ynh1
upgrade=1 from_commit=2cf63bd4d660eae4526221c1a68efede499e3ee6
# 4.64~ynh1
upgrade=1 from_commit=32fe3a7c342e5f29d7a7534125151723f916de46
backup_restore=1
multi_instance=1
# This test is no longer necessary since the version 2.7 (PR: https://github.com/YunoHost/yunohost/pull/304), you can still do it if your app could be installed with this version.
@ -45,3 +47,5 @@ Notification=down
name=4.09~ynh1
; commit=2cf63bd4d660eae4526221c1a68efede499e3ee6
name=4.43~ynh1
; commit=32fe3a7c342e5f29d7a7534125151723f916de46
name=4.64~ynh1

View file

@ -6,7 +6,7 @@
"en": "Trello-like kanban",
"fr": "Un kanban similaire à Trello"
},
"version": "4.64~ynh1",
"version": "4.64~ynh2",
"url": "https://wekan.io",
"license": "MIT",
"maintainer": [

View file

@ -65,7 +65,7 @@ ynh_app_setting_set --app=$app --key=is_public --value=$is_public
#=================================================
# FIND AND OPEN A PORT
#=================================================
ynh_script_progression --message="Configuring firewall..."
ynh_script_progression --message="Finding an available port..."
# Find an available port
port=$(ynh_find_port --port=8095)

View file

@ -335,11 +335,17 @@ ynh_install_mongo() {
#
#
ynh_remove_mongo() {
ynh_print_info --message="Removing MongoDB..."
# Only remove the mongodb service if it is not installed.
if ! ynh_package_is_installed --package="mongodb*"
then
ynh_print_info --message="Removing MongoDB service..."
# Define Mongo Service Name
if [ "$(lsb_release --codename --short)" = "buster" ]; then
MONGODB_SERVICENAME=$MONGO_SERVICENAME_BUSTER
else
MONGODB_SERVICENAME=$MONGO_SERVICENAME_STRETCH
fi
# Remove the mongodb service
yunohost service remove $MONGODB_SERVICENAME
# ynh_secure_remove --file=$MONGO_ROOT_PWD_FILE
fi