diff --git a/scripts/install b/scripts/install index 777b82a..513cf5f 100644 --- a/scripts/install +++ b/scripts/install @@ -131,8 +131,9 @@ popd || ynh_die #================================================= ynh_script_progression --message="Securing files and directories..." --weight=1 -chown -R $app:$app $final_path +chmod 750 "$final_path" chmod -R o-rwx $final_path +chown -R $app:$app $final_path chmod 600 "$final_path/config/config.js" #================================================= diff --git a/scripts/restore b/scripts/restore index 1b1ae01..85543cc 100644 --- a/scripts/restore +++ b/scripts/restore @@ -69,8 +69,9 @@ ynh_restore_file --origin_path="$final_path" #================================================= # Restore permissions on app files -chown -R $app: $final_path +chmod 750 "$final_path" chmod -R o-rwx $final_path +chown -R $app:$app $final_path chmod 600 "$final_path/config/config.js" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 95ae3a1..0286dc5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -141,8 +141,9 @@ ynh_add_systemd_config #================================================= # Set permissions on app files -chown -R $app: $final_path +chmod 750 "$final_path" chmod -R o-rwx $final_path +chown -R $app:$app $final_path chmod 600 "$final_path/config/config.js" #=================================================