From 671c540ab01377f91d97b88d029d4669dba379d5 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 15 Apr 2021 20:27:30 +0200 Subject: [PATCH] Fix chmod --- scripts/install | 4 ++-- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 8e30d22..e406b9f 100644 --- a/scripts/install +++ b/scripts/install @@ -98,7 +98,7 @@ ynh_setup_source --dest_dir="$final_path/build/" --source_id="app" # Download, check integrity, uncompress and patch the source from web.src ynh_setup_source --dest_dir="$final_path/live/web-vault/" --source_id="web" -chmod 750 "$final_path" +chmod -R 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:$app "$final_path" @@ -140,7 +140,7 @@ ynh_secure_remove --file="$final_path/.rustup" # Create datadir mkdir -p "$final_path/live/data" -chmod 750 "$final_path/live/data" +chmod -R 750 "$final_path/live/data" chmod -R o-rwx "$final_path/live/data" chown -R $app:$app "$final_path/live/data" diff --git a/scripts/restore b/scripts/restore index 407ffdf..5966c06 100644 --- a/scripts/restore +++ b/scripts/restore @@ -65,7 +65,7 @@ ynh_script_progression --message="Restoring the app main directory..." ynh_restore_file --origin_path="$final_path" -chmod 750 "$final_path" +chmod -R 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:$app "$final_path" diff --git a/scripts/upgrade b/scripts/upgrade index bb4b009..2dbd6c1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -101,7 +101,7 @@ then ynh_setup_source --dest_dir="$final_path/live/web-vault/" --source_id="web" fi -chmod 750 "$final_path" +chmod -R 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:$app "$final_path"