From e19dc4052fcedee4f193c548d3dded2787fd752d Mon Sep 17 00:00:00 2001 From: Hugo Poissonnet Date: Tue, 18 Jul 2023 12:54:19 +0200 Subject: [PATCH] fix(upgrade): missing use_ldap in upgrade (#82) * fix(upgrade): missing use_ldap loading in upgrade * style: tabs --- scripts/upgrade | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 707a138..356fb96 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -34,6 +34,15 @@ if [ -z "${max_file_size:-}" ]; then ynh_app_setting_set --app=$app --key=max_file_size --value=$max_file_size fi +if [ -z "${use_ldap:-}" ]; then + use_ldap=0 + ynh_app_setting_set --app=$app --key=use_ldap --value=$use_ldap +fi + +if [ -z "${secret:-}" ]; then + secret=$(ynh_string_random --length=24) + ynh_app_setting_set --app=$app --key=secret --value=$secret +fi #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================