From f1ced0ac4e05c43dd48bffb8ee056ed8b79fd41b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 3 Feb 2022 09:48:16 +0100 Subject: [PATCH] Add permissions --- conf/app.src | 1 - scripts/install | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/conf/app.src b/conf/app.src index f53f889..9c038a2 100644 --- a/conf/app.src +++ b/conf/app.src @@ -3,4 +3,3 @@ SOURCE_SUM=c7b31b2a92b173db4a3878d95aa74c8eb796e7b4d5600a80a00a73d80aa12ada SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=zip SOURCE_IN_SUBDIR=true -SOURCE_FILENAME= diff --git a/scripts/install b/scripts/install index 31c9791..e320bf6 100644 --- a/scripts/install +++ b/scripts/install @@ -116,6 +116,11 @@ ynh_script_progression --message="Modifying a config file..." ynh_add_config --template="../conf/config.json.example" --destination="$final_path/static/config.json" ynh_add_config --template="../conf/config.conf.example" --destination="$webircgateway_path/config.conf" +chmod 600 "$final_path/static/config.json" +chmod 600 "$webircgateway_path/config.conf" +chown $app:$app "$final_path/some_config_file" +chown $app:$app "$webircgateway_path/config.conf" + #================================================= # INTEGRATE SERVICE IN YUNOHOST #=================================================