From 04a591b6bdc12d96f8ebcefe9441d9979d58cf93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 24 Jun 2022 13:33:57 +0200 Subject: [PATCH] Fix --- scripts/install | 3 ++- scripts/upgrade | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index fe11fde..3a903ef 100644 --- a/scripts/install +++ b/scripts/install @@ -125,7 +125,6 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1 app_url_domain="https://$domain${path_url%/}" ynh_add_config --template=../conf/.env.example --destination=$final_path/.env -chmod 600 $final_path/.env #================================================= # FINAL BOOKSTACK INSTALL @@ -142,6 +141,8 @@ popd chmod 755 $final_path chmod -R o-rwx $final_path chown -R $app:www-data $final_path + +chmod 600 $final_path/.env chown $app:$app $final_path/.env #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 6a4d9b7..978de98 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -143,7 +143,6 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1 app_url_domain="https://$domain${path_url%/}" ynh_add_config --template=../conf/.env.example --destination=$final_path/.env -chmod 600 $final_path/.env #================================================= # FINAL BOOKSTACK INSTALL @@ -161,6 +160,8 @@ popd chmod 755 $final_path chmod -R o-rwx $final_path chown -R $app:www-data $final_path + +chmod 600 $final_path/.env chown $app:$app $final_path/.env #=================================================