diff --git a/scripts/install b/scripts/install index 83c678c..9fbdaae 100755 --- a/scripts/install +++ b/scripts/install @@ -83,7 +83,7 @@ ynh_setup_source --dest_dir="$final_path/tmp" cp -af "$final_path/tmp/src/." "$final_path/." ynh_secure_remove "$final_path/tmp" -chmod -R 750 "$final_path" +chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" @@ -112,12 +112,12 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) ynh_script_progression --message="Creating statedir and final_logpath..." mkdir -p $statedir -chmod -R 750 "$statedir" +chmod 750 "$statedir" chmod -R o-rwx "$statedir" chown -R $app:www-data "$statedir" mkdir -p $final_logpath -chmod -R 750 "$final_logpath" +chmod 750 "$final_logpath" chmod -R o-rwx "$final_logpath" chown -R $app:www-data "$final_logpath" diff --git a/scripts/restore b/scripts/restore index cb4ce8c..b23b13e 100755 --- a/scripts/restore +++ b/scripts/restore @@ -71,14 +71,14 @@ ynh_restore_file --origin_path="$final_path" # Restore statedir ynh_restore_file --origin_path="$statedir" --not_mandatory mkdir -p $statedir -chmod -R 750 "$statedir" +chmod 750 "$statedir" chmod -R o-rwx "$statedir" chown -R $app:www-data "$statedir" # Restore logs, data & permissions ynh_restore_file --origin_path="$final_logpath" --not_mandatory mkdir -p $final_logpath -chmod -R 750 "$final_logpath" +chmod 750 "$final_logpath" chmod -R o-rwx "$final_logpath" chown -R $app:www-data "$final_logpath" diff --git a/scripts/upgrade b/scripts/upgrade index f5a2814..947a190 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -94,7 +94,7 @@ then ynh_secure_remove --file="$final_path/tmp" fi -chmod -R 750 "$final_path" +chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path"