Skip to content

Commit

Permalink
Merge pull request #229 from YunoHost-Apps/testing
Browse files Browse the repository at this point in the history
Fix bookworm
  • Loading branch information
yalh76 authored Aug 5, 2023
2 parents 562dde8 + d17d9af commit 1ca9dd5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

#=================================================
Expand Down
4 changes: 3 additions & 1 deletion check_process
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion scripts/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#=================================================

# dependencies used by the app
pkg_dependencies="postgresql postgresql-contrib"
pkg_dependencies="postgresql postgresql-contrib rsync"

nodejs_version=16

Expand Down
2 changes: 1 addition & 1 deletion scripts/change_url
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions scripts/upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
#=================================================
Expand Down

0 comments on commit 1ca9dd5

Please sign in to comment.