Fix Permissions og config.secret.inc.php

For Docker in rootless-mode having the default umask of Docker set to 0007, the file will get created readable only to root.

Changed the ownership of that file to be readable by www-data.
This commit is contained in:
Daniel Pätzold
2023-12-29 16:51:44 +01:00
committed by GitHub
parent 272944cc5a
commit 3e0bcce10e
+1
View File
@@ -7,6 +7,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
\$cfg['blowfish_secret'] = '$(tr -dc 'a-zA-Z0-9~!@#$%^&*_()+}{?></";.,[]=-' < /dev/urandom | fold -w 32 | head -n 1)';
EOT
fi
chgrp www-data /etc/phpmyadmin/config.secret.inc.php
if [ ! -f /etc/phpmyadmin/config.user.inc.php ]; then
touch /etc/phpmyadmin/config.user.inc.php