From 147f54897637e81077f6e97f5326635a17c45f5c Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 31 Mar 2023 18:24:59 +0200 Subject: [PATCH] fix --- manifest.toml | 6 +++--- scripts/change_url | 2 ++ scripts/upgrade | 9 +-------- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/manifest.toml b/manifest.toml index 57b4785..2276d61 100644 --- a/manifest.toml +++ b/manifest.toml @@ -24,9 +24,9 @@ architectures = "all" multi_instance = false ldap = false sso = false -disk = "50M" # FIXME: replace with an **estimate** minimum disk requirement. e.g. 20M, 400M, 1G, ... -ram.build = "50M" # FIXME: replace with an **estimate** minimum ram requirement. e.g. 50M, 400M, 1G, ... -ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requirement. e.g. 50M, 400M, 1G, ... +disk = "50M" +ram.build = "50M" +ram.runtime = "50M" [install] [install.domain] diff --git a/scripts/change_url b/scripts/change_url index c6af2bb..2e45e03 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -9,6 +9,8 @@ source _common.sh source /usr/share/yunohost/helpers +password=$(ynh_app_setting_get --app=$app --key=password) + #================================================= # STANDARD MODIFICATIONS #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 932e5e2..71e9cf3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,6 +9,7 @@ source _common.sh source /usr/share/yunohost/helpers +password=$(ynh_app_setting_get --app=$app --key=password) #================================================= # CHECK VERSION @@ -30,14 +31,6 @@ if [ -z "$language_key" ]; then ynh_app_setting_delete --app=$app --key=language fi -# Create sharing permission if needed - if ! ynh_permission_exists --permission="sharing"; then - ynh_permission_create --permission="sharing" --url="/s" --allowed="visitors" --show_tile="false" --protected="true" -fi - - - - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================