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 #=================================================