From 5204b6e57b6f802675669720386380f9b37d8df0 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 4 Sep 2021 08:24:15 +0200 Subject: [PATCH] Update install --- scripts/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 824d862..750a769 100644 --- a/scripts/install +++ b/scripts/install @@ -84,10 +84,6 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir=$final_path -chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" - #================================================= # NGINX CONFIGURATION #================================================= @@ -141,6 +137,10 @@ ynh_add_systemd_config ynh_script_progression --message="Modifying a config file..." --weight=1 ynh_add_config --template="../conf/config.json.example" --destination="$final_path/config/config.json" + +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" chmod 600 $final_path/config/config.json chown $app:$app $final_path/config/config.json