From 05ad4cbb29e2a6e5193ebb3025ceec040f59b070 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 4 Aug 2023 20:20:28 +0200 Subject: [PATCH 1/4] Fix bookworm --- scripts/change_url | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 99279bd..c6102a5 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -72,7 +72,7 @@ fi #================================================= ynh_script_progression --message="Stopping a systemd service..." -ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped wikijs service" +ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped" #================================================= # MODIFY URL IN NGINX CONF diff --git a/scripts/upgrade b/scripts/upgrade index 990f408..5300343 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -55,7 +55,7 @@ ynh_abort_if_errors #================================================= ynh_script_progression --message="Stopping a systemd service..." -ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped wikijs service" +ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped" #================================================= # ENSURE DOWNWARD COMPATIBILITY From fb0b70c657a0ec8b5a3ba9ab32bc77bac9c147b9 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 4 Aug 2023 21:00:04 +0200 Subject: [PATCH 2/4] Update updater.sh --- .github/workflows/updater.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index 9eab22e..abe6f74 100644 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -24,7 +24,7 @@ assets="https://github.com/Requarks/wiki/releases/download/$version/wiki-js.tar. # Sometimes the release name starts with a "v", so let's filter it out. # You may need more tweaks here if the upstream repository has different naming conventions. if [[ ${version:0:1} == "v" || ${version:0:1} == "V" ]]; then - version=${version:1} + version=${version:1} fi # Setting up the environment variables @@ -36,12 +36,12 @@ echo "PROCEED=false" >> $GITHUB_ENV # Proceed only if the retrieved version is greater than the current one if ! dpkg --compare-versions "$current_version" "lt" "$version" ; then - echo "::warning ::No new version available" - exit 0 + echo "::warning ::No new version available" + exit 0 # Proceed only if a PR for this new version does not already exist elif git ls-remote -q --exit-code --heads https://github.com/$GITHUB_REPOSITORY.git ci-auto-update-v$version ; then - echo "::warning ::A branch already exists for this update" - exit 0 + echo "::warning ::A branch already exists for this update" + exit 0 fi #================================================= From 84733d81d242469180a7419046741c9241c54bfd Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 4 Aug 2023 22:47:59 +0200 Subject: [PATCH 3/4] Fix bookworm --- scripts/_common.sh | 2 +- scripts/upgrade | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 8fddb7d..581c006 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,7 @@ #================================================= # dependencies used by the app -pkg_dependencies="postgresql postgresql-contrib" +pkg_dependencies="postgresql postgresql-contrib rsync" nodejs_version=16 diff --git a/scripts/upgrade b/scripts/upgrade index 5300343..7eb24ca 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -13,7 +13,7 @@ source /usr/share/yunohost/helpers #================================================= # LOAD SETTINGS #================================================= -ynh_script_progression --message="Loading installation settings..." +ynh_script_progression --message="Loading settings..." app=$YNH_APP_INSTANCE_NAME @@ -100,6 +100,8 @@ if ynh_legacy_permissions_exists; then ynh_app_setting_delete --app=$app --key=is_public fi +ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies + #================================================= # CREATE DEDICATED USER #================================================= From 745754b5c1c022b3b0473bf0f88111c916703d98 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 5 Aug 2023 13:38:23 +0200 Subject: [PATCH 4/4] Update check_process --- check_process | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/check_process b/check_process index 2542ff1..03b6e2c 100644 --- a/check_process +++ b/check_process @@ -48,10 +48,12 @@ upgrade=1 from_commit=de01b48bfee4abff5edcf2fd288d3ff930ccc45a # 2.5.272~ynh1 upgrade=1 from_commit=0721e06b03c1fa384adcade256b1d67c9462d61e + # 2.5.299~ynh1 + upgrade=1 from_commit=562dde836f45847aaf53caa6a4e77c24377d6b76 backup_restore=1 multi_instance=1 port_already_use=0 - change_url=1 + change_url=0 ;;; Options Email= Notification=none