Fixes #3834 - Package installation creates database.yml as root and thus breaks the installation until next update
This commit is contained in:
parent
907062b7eb
commit
c75141c2ff
1 changed files with 3 additions and 0 deletions
|
@ -181,6 +181,9 @@ function update_database_yml () {
|
||||||
-e "s/.*username:.*/ username: ${DB_USER}/" \
|
-e "s/.*username:.*/ username: ${DB_USER}/" \
|
||||||
-e "s/.*password:.*/ password: ${DB_PASS}/" \
|
-e "s/.*password:.*/ password: ${DB_PASS}/" \
|
||||||
-e "s/.*database:.*/ database: ${DB}/" < ${ZAMMAD_DIR}/contrib/packager.io/database.yml.pkgr > ${ZAMMAD_DIR}/config/database.yml
|
-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 () {
|
function initialise_database () {
|
||||||
|
|
Loading…
Reference in a new issue