From 2e6b8416b8f32656c908b338627cdf475c54957e Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 1 Dec 2021 10:38:17 +0100 Subject: [PATCH] No need to ynh_exec_as to make files in upgrade There's a chown/chmod step right after it. --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 4f3c008..0a062c4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -153,8 +153,8 @@ ynh_script_progression --message="Installing and configuring LDAP plugin..." --w # Download LDAP source ynh_setup_source --dest_dir="$final_path/user/plugins/login-ldap" --source_id="ldap" -ynh_exec_as $app mkdir -p "$final_path/user/config/plugins/login-ldap" -ynh_exec_as $app touch "$final_path/user/accounts/admin.yaml" +mkdir -p "$final_path/user/config/plugins/login-ldap" +touch "$final_path/user/accounts/admin.yaml" ynh_add_config --template="../conf/login-ldap.yaml" --destination="$final_path/user/config/plugins/login-ldap.yaml" chown $app:$app "$final_path/user/config/plugins/login-ldap.yaml"