From 4eca26efebb8a94a267b3027edf513c65460e728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 3 Apr 2023 09:32:03 +0200 Subject: [PATCH] Fix --- manifest.toml | 3 +-- scripts/restore | 1 - scripts/upgrade | 10 +++++----- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/manifest.toml b/manifest.toml index 12ce82b..df7e708 100644 --- a/manifest.toml +++ b/manifest.toml @@ -17,7 +17,7 @@ admindoc = "https://docs.hedgedoc.org/" code = "https://github.com/hedgedoc/hedgedoc" [integration] -yunohost = ">= 11.1.12" +yunohost = ">= 11.1.15" architectures = "all" multi_instance = true ldap = true @@ -54,7 +54,6 @@ ram.runtime = "50M" [resources.apt] packages = "postgresql" - # (this part is optional and corresponds to the legacy ynh_install_extra_app_dependencies helper) extras.yarn.repo = "deb https://dl.yarnpkg.com/debian/ stable main" extras.yarn.key = "https://dl.yarnpkg.com/debian/pubkey.gpg" extras.yarn.packages = "yarn" diff --git a/scripts/restore b/scripts/restore index e597608..eee9898 100644 --- a/scripts/restore +++ b/scripts/restore @@ -25,7 +25,6 @@ ynh_script_progression --message="Restoring HedgeDoc main directory..." --weight ynh_restore_file --origin_path="$install_dir" -chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" diff --git a/scripts/upgrade b/scripts/upgrade index 4a681db..600d2d3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -20,27 +20,27 @@ upgrade_type=$(ynh_check_app_version_changed) #================================================= ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 -if [ -z "$allow_anonymous" ]; then +if [ -z "${allow_anonymous:-}" ]; then allow_anonymous="false" ynh_app_setting_set --app=$app --key=allow_anonymous --value=$allow_anonymous fi -if [ -z "$allow_anonymous_edits" ]; then +if [ -z "${allow_anonymous_edits:-}" ]; then allow_anonymous_edits="false" ynh_app_setting_set --app=$app --key=allow_anonymous_edits --value=$allow_anonymous_edits fi -if [ -z "$allow_email_registration" ]; then +if [ -z "${allow_email_registration:-}" ]; then allow_email_registration="false" ynh_app_setting_set --app=$app --key=allow_email_registration --value=$allow_email_registration fi -if [ -z "$allow_free_url" ]; then +if [ -z "${allow_free_url:-}" ]; then allow_free_url="false" ynh_app_setting_set --app=$app --key=allow_free_url --value=$allow_free_url fi -if [ -z "$require_free_url_authentication" ]; then +if [ -z "${require_free_url_authentication:-}" ]; then require_free_url_authentication="false" ynh_app_setting_set --app=$app --key=require_free_url_authentication --value=$require_free_url_authentication fi