From b5475a003c46897f7a91327f2a6e7ac4a5d6e40f Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 17 Apr 2021 18:31:58 +0200 Subject: [PATCH] Fix recursive chmod --- scripts/install | 4 ++-- scripts/restore | 4 ++-- scripts/upgrade | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 42d51af..50849a3 100644 --- a/scripts/install +++ b/scripts/install @@ -130,7 +130,7 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" -chmod -R 750 "$final_path" +chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" @@ -152,7 +152,7 @@ ynh_script_progression --message="Creating the data directory..." # Create app folders mkdir -p "$datadir" -chmod -R 750 "$datadir" +chmod 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:$app "$datadir" diff --git a/scripts/restore b/scripts/restore index e210367..7f7fe79 100644 --- a/scripts/restore +++ b/scripts/restore @@ -71,7 +71,7 @@ ynh_script_progression --message="Restoring the app main directory..." ynh_restore_file --origin_path="$final_path" -chmod -R 750 "$final_path" +chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" @@ -87,7 +87,7 @@ ynh_restore_file --origin_path="$datadir" --not_mandatory mkdir -p "$datadir" -chmod -R 750 "$datadir" +chmod 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:$app "$datadir" diff --git a/scripts/upgrade b/scripts/upgrade index 9b65839..07f9da9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -169,7 +169,7 @@ then ynh_secure_remove --file="$tmpdir" fi -chmod -R 750 "$final_path" +chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" @@ -216,7 +216,7 @@ ynh_script_progression --message="Creating the data directory..." # Create app folders mkdir -p "$datadir" -chmod -R 750 "$datadir" +chmod 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:$app "$datadir"