From 82a45f77f7f84c38ba87fb58129a41ba441f7817 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 25 Apr 2021 12:26:33 +0200 Subject: [PATCH] Manage rights on local.json --- manifest.json | 2 +- scripts/install | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index e0a4b16..8099950 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Video streaming platform using P2P directly in the web browser, connected to a federated network", "fr": "Plateforme de diffusion vidéo par P2P directement dans le navigateur, et connectée à un réseau fédéralisé" }, - "version": "3.1.0~ynh4", + "version": "3.1.0~ynh5", "url": "https://github.com/Chocobozzz/PeerTube", "license": "AGPL-3.0-only", "maintainer": [ diff --git a/scripts/install b/scripts/install index 6261a8b..ea739dd 100644 --- a/scripts/install +++ b/scripts/install @@ -178,7 +178,7 @@ chown $app:$app "$final_path/config/production.yaml" ynh_add_config --template="../conf/local-production.json" --destination="$final_path/config/local-production.json" -chmod 400 "$final_path/config/local-production.json" +chmod 600 "$final_path/config/local-production.json" chown $app:$app "$final_path/config/local-production.json" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index aaac2ba..0db403a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -230,7 +230,7 @@ ynh_add_config --template="../conf/production.yaml" --destination="$final_path/c chmod 400 "$final_path/config/production.yaml" chown $app:$app "$final_path/config/production.yaml" -chmod 400 "$final_path/config/local-production.json" +chmod 600 "$final_path/config/local-production.json" chown $app:$app "$final_path/config/local-production.json" #=================================================