From eb81d36645c151d3c400592aa024f867148e63e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Dufraisse?= Date: Sat, 27 Nov 2021 12:51:17 +0100 Subject: [PATCH] fix(install): use yeswiki_update_dir_rights --- scripts/install | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 5e37eda..bbfeab6 100755 --- a/scripts/install +++ b/scripts/install @@ -107,7 +107,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # Set right permissions for cURL install -chown -R $app: $final_path +chown -R $app:$app $final_path # Set the app as temporarily public for cURL call ynh_permission_update --permission="main" --add="visitors" @@ -165,11 +165,7 @@ ynh_replace_string --match_string=");"\ #================================================= # Set permissions to app files -chown -R root: $final_path -chown -R $app $final_path/{cache,files,themes,tools,wakka.config.php} - -chown $app:www-data $final_path -chmod o-rwx $final_path +yeswiki_update_dir_rights $app $final_path #================================================= # SETUP SSOWAT