From a8ff621f3b27e073ff05b89434de341393e35ec2 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Mon, 10 May 2021 17:30:52 +0200 Subject: [PATCH] adjust permission to edit config.local.php --- scripts/install | 3 ++- scripts/upgrade | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index cd84391..01e273a 100644 --- a/scripts/install +++ b/scripts/install @@ -86,7 +86,8 @@ ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependenc #================================================= chown -R $app:$app $final_path -chmod 400 $final_path/config.dist.php $final_path/config.local.php $final_path/index.php $final_path/sous-domaine.html $final_path/VERSION +chmod 400 $final_path/config.dist.php $final_path/index.php $final_path/sous-domaine.html $final_path/VERSION +chmod 644 $final_path/config.local.php find $final_path/scripts -type d -exec chmod 500 {} + find $final_path/scripts -type f -exec chmod 400 {} + find $final_path/templates -type d -exec chmod 500 {} + diff --git a/scripts/upgrade b/scripts/upgrade index dce0dd0..01f363b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -207,7 +207,8 @@ fi # Set permissions on app files chown -R $app:$app $final_path -chmod 400 $final_path/config.dist.php $final_path/config.local.php $final_path/index.php $final_path/sous-domaine.html $final_path/VERSION +chmod 400 $final_path/config.dist.php $final_path/index.php $final_path/sous-domaine.html $final_path/VERSION +chmod 644 $final_path/config.local.php find $final_path/scripts -type d -exec chmod 500 {} + find $final_path/scripts -type f -exec chmod 400 {} + find $final_path/templates -type d -exec chmod 500 {} +