From 49759f0be8e95e5bc0657c258552c3ed35ce522d Mon Sep 17 00:00:00 2001 From: Marcel Herrguth Date: Tue, 2 Nov 2021 13:30:10 +0100 Subject: [PATCH] Fixes #3828 - Zammad database credentials are world-readable Cherry pick of 71d6b9e41323982009f946074c9840d40bd98405 to stable. --- contrib/packager.io/functions | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/packager.io/functions b/contrib/packager.io/functions index 8f3f91983..26b00a37b 100644 --- a/contrib/packager.io/functions +++ b/contrib/packager.io/functions @@ -301,6 +301,9 @@ function update_or_install () { setup_elasticsearch elasticsearch_searchindex_rebuild + + echo "# Enforcing 0600 on database.yml ..." + chmod 600 ${ZAMMAD_DIR}/config/database.yml } function set_env_vars () {