From 1be4caaaf2787e614cd315ca8564573d4268032a Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 9 Apr 2021 00:27:39 +0200 Subject: [PATCH] Fix #216 --- manifest.json | 2 +- scripts/install | 5 ++++- scripts/restore | 2 +- scripts/upgrade | 5 ++++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 5105873..f7eb226 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~ynh1", + "version": "3.1.0~ynh2", "url": "https://github.com/Chocobozzz/PeerTube", "license": "AGPL-3.0-only", "maintainer": [ diff --git a/scripts/install b/scripts/install index 98434c2..a2b1c90 100644 --- a/scripts/install +++ b/scripts/install @@ -149,7 +149,7 @@ ynh_script_progression --message="Creating the data directory..." mkdir -p "$datadir" # Give permission to the datadir -chown -R "$app":"$app" "$datadir" +chown -R $app:$app $datadir #================================================= # MODIFY A CONFIG FILE @@ -224,6 +224,9 @@ ynh_script_progression --message="Securing files and directories..." # Set permissions to app files chown -R $app:$app $final_path +# Give permission to the datadir +chown -R $app:$app $datadir + #================================================= # SETUP LOGROTATE #================================================= diff --git a/scripts/restore b/scripts/restore index 8b4b2e8..033dc18 100644 --- a/scripts/restore +++ b/scripts/restore @@ -92,7 +92,7 @@ ynh_restore_file --origin_path="$datadir" --not_mandatory mkdir -p "$datadir" # Give permission to the datadir -chown -R "$app":"$app" "$datadir" +chown -R $app:$app $datadir #================================================= # REINSTALL DEPENDENCIES diff --git a/scripts/upgrade b/scripts/upgrade index a8d7517..d960814 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -224,7 +224,7 @@ then fi # Give permission to the datadir -chown -R "$app":"$app" "$datadir" +chown -R $app:$app $datadir #================================================= # MODIFY A CONFIG FILE @@ -276,6 +276,9 @@ ynh_script_progression --message="Securing files and directories..." # Set permissions on app files chown -R $app:$app $final_path +# Give permission to the datadir +chown -R $app:$app $datadir + #================================================= # SETUP LOGROTATE #=================================================