From 356886579a329beed11bc1333e5df4e45f3304a4 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 25 Sep 2021 15:52:13 +0200 Subject: [PATCH] 775 --- scripts/install | 2 +- scripts/upgrade | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index ded3a26..8deae1c 100755 --- a/scripts/install +++ b/scripts/install @@ -126,7 +126,7 @@ ynh_script_progression --message="Creating smarty3 folder for personal data..." mkdir -p "${final_path}/store" mkdir -p "${final_path}/cache/smarty3" -chmod -R 777 $final_path/store $final_path/cache +chmod -R 775 $final_path/store $final_path/cache # Copy the template install/htconfig.sample.php to .htconfig.php config="$final_path/.htconfig.php" diff --git a/scripts/upgrade b/scripts/upgrade index cdc00c2..ebbcb46 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -117,7 +117,7 @@ if [ `cd $final_path && git rev-parse --is-inside-work-tree` ]; then fi; done popd - chmod -R 777 $final_path/store + chmod -R 775 $final_path/store else # Create a temporary directory @@ -139,7 +139,7 @@ else cp -a "$tmpdir/.htconfig.php" "${final_path}" cp -a "$tmpdir/php.log" "${final_path}" ynh_secure_remove --file="$tmpdir" - chmod -R 777 $final_path/store + chmod -R 775 $final_path/store mkdir $final_path/addon ynh_setup_source --dest_dir="$final_path/addon" --source_id="app_addons" fi