From f61a9c9cf48f45f432b3f75b05d9097f8d612554 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 17 Apr 2021 18:31:25 +0200 Subject: [PATCH] Fix recursive chmod --- scripts/install | 6 +++--- scripts/restore | 4 ++-- scripts/upgrade | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/install b/scripts/install index 68b412b..bf0e8cb 100644 --- a/scripts/install +++ b/scripts/install @@ -111,7 +111,7 @@ pushd $final_path mkdir -p config popd -chmod -R 750 "$final_path" +chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" @@ -120,7 +120,7 @@ pushd $datadir mkdir -p static media music popd -chmod -R 750 "$datadir" +chmod 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:www-data "$datadir" @@ -192,7 +192,7 @@ pushd $final_path echo "yes" | python api/manage.py collectstatic popd -chmod -R 750 "$final_path" +chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" diff --git a/scripts/restore b/scripts/restore index 6098cb9..9b33c98 100644 --- a/scripts/restore +++ b/scripts/restore @@ -69,7 +69,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 @@ pushd $datadir mkdir -p static media music popd -chmod -R 750 "$datadir" +chmod 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:www-data "$datadir" diff --git a/scripts/upgrade b/scripts/upgrade index 1631f67..8116e84 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -108,7 +108,7 @@ if [ -z "$datadir" ]; then mkdir -p static media music popd - chmod -R 750 "$datadir" + chmod 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:www-data "$datadir" @@ -135,7 +135,7 @@ if [ -z "$datadir" ]; then ynh_app_setting_set --app=$app --key=datadir --value=$datadir - chmod -R 750 "$datadir" + chmod 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:www-data "$datadir" @@ -165,7 +165,7 @@ then ynh_setup_source --dest_dir="$final_path/front" --source_id="front" fi -chmod -R 750 "$final_path" +chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" @@ -245,7 +245,7 @@ pushd $final_path python api/manage.py fw media generate-thumbnails popd -chmod -R 750 "$final_path" +chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path"