1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grav_ynh.git synced 2024-09-03 19:16:01 +02:00

No need to ynh_exec_as to make files in upgrade

There's a chown/chmod step right after it.
This commit is contained in:
tituspijean 2021-12-01 10:38:17 +01:00 committed by GitHub
parent 560668c763
commit 2e6b8416b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"