From 94d9533e3763a8c4fe44845729ff74fe255f3896 Mon Sep 17 00:00:00 2001 From: Marcel Herrguth Date: Thu, 4 Nov 2021 11:32:37 +0100 Subject: [PATCH] Fixes #3834 - Package installation creates database.yml as root and thus breaks the installation until next update --- contrib/packager.io/functions | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/packager.io/functions b/contrib/packager.io/functions index 26b00a37b..d770c4d95 100644 --- a/contrib/packager.io/functions +++ b/contrib/packager.io/functions @@ -181,6 +181,9 @@ function update_database_yml () { -e "s/.*username:.*/ username: ${DB_USER}/" \ -e "s/.*password:.*/ password: ${DB_PASS}/" \ -e "s/.*database:.*/ database: ${DB}/" < ${ZAMMAD_DIR}/contrib/packager.io/database.yml.pkgr > ${ZAMMAD_DIR}/config/database.yml + + echo "# ... Fixing permission database.yml" + chown zammad:zammad ${ZAMMAD_DIR}/config/database.yml } function initialise_database () {