From 1d7e631ac8a0fcd868ebc7070220673f971e95a1 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 24 Mar 2021 12:54:05 +0100 Subject: [PATCH] Fix --- scripts/install | 5 +++-- scripts/restore | 1 + scripts/upgrade | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index d66cd65..88c4d5e 100644 --- a/scripts/install +++ b/scripts/install @@ -46,7 +46,7 @@ ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url ynh_script_progression --message="Storing installation settings..." --weight=2 ynh_app_setting_set --app=$app --key=domain --value=$domain -ynh_app_setting_set --app=$app --key=path --value=$path_url +ynh_app_setting_set --app=$app --key=path --value=$path_url #================================================= # STANDARD MODIFICATIONS @@ -125,7 +125,7 @@ popd || ynh_die #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 -ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" +ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" ynh_replace_string --match_string="__YNH_NPM__" --replace_string="$ynh_npm" --target_file="../conf/systemd.service" ynh_add_systemd_config @@ -150,6 +150,7 @@ ynh_script_progression --message="Securing files and directories..." --weight=1 # Set permissions to app files chown -R $app:$app $final_path +chmod o-rwx $final_path chmod 600 $final_path/.sequelizerc #================================================= diff --git a/scripts/restore b/scripts/restore index 96f392b..2dd10da 100644 --- a/scripts/restore +++ b/scripts/restore @@ -74,6 +74,7 @@ ynh_script_progression --message="Restoring user rights..." --weight=2 # Restore permissions on app files chown -R $app:$app $final_path +chmod o-rwx $final_path chmod 600 $final_path/.sequelizerc #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index d71bd9c..ab50ba4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -159,6 +159,7 @@ ynh_script_progression --message="Securing files and directories..." --weight=1 # Set permissions on app files chown -R $app:$app $final_path +chmod o-rwx $final_path chmod 600 $final_path/.sequelizerc #=================================================