From 5c404b8d6fb12a3787684f1401a78e8457f12087 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 15 Apr 2021 20:29:24 +0200 Subject: [PATCH] Fix chmod --- scripts/install | 4 ++-- scripts/restore | 4 ++-- scripts/upgrade | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index c79d09f..010e954 100755 --- a/scripts/install +++ b/scripts/install @@ -124,7 +124,7 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path architecture=$(ynh_detect_arch) ynh_setup_source --dest_dir="$final_path/$app" --source_id=$architecture -chmod 750 "$final_path" +chmod -R 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:$app "$final_path" @@ -164,7 +164,7 @@ mkdir -p "$datadir/uploads/" mkdir -p "$datadir/static/" mkdir -p "$datadir/static/emoji/" -chmod 750 "$datadir" +chmod -R 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:$app "$datadir" diff --git a/scripts/restore b/scripts/restore index a0372ad..da046e4 100755 --- a/scripts/restore +++ b/scripts/restore @@ -76,7 +76,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" @@ -96,7 +96,7 @@ mkdir -p "$datadir/uploads/" mkdir -p "$datadir/static/" mkdir -p "$datadir/static/emoji/" -chmod 750 "$datadir" +chmod -R 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:$app "$datadir" diff --git a/scripts/upgrade b/scripts/upgrade index 2d5cb99..dd34786 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -189,7 +189,7 @@ then ynh_setup_source --dest_dir="$final_path/$app" --source_id=$architecture fi -chmod 750 "$final_path" +chmod -R 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:$app "$final_path"