diff --git a/scripts/install b/scripts/install index 14c3f82..55b94ea 100644 --- a/scripts/install +++ b/scripts/install @@ -111,7 +111,7 @@ pushd $final_path mkdir -p config popd -chmod 750 "$final_path" +chmod -R 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:$app "$final_path" @@ -120,7 +120,7 @@ pushd $datadir mkdir -p static media music popd -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 2411d5f..c08e3ee 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 750 "$final_path" +chmod -R 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:$app "$final_path" @@ -87,7 +87,7 @@ pushd $datadir mkdir -p static media music popd -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 e42ad12..dfe5cf9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -150,7 +150,7 @@ then ynh_setup_source --dest_dir="$final_path/front" --source_id="front" fi -chmod 750 "$final_path" +chmod -R 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:$app "$final_path"