Skip to content

Commit 3e0bcce

Browse files
authored
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.
1 parent 272944c commit 3e0bcce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
77
\$cfg['blowfish_secret'] = '$(tr -dc 'a-zA-Z0-9~!@#$%^&*_()+}{?></";.,[]=-' < /dev/urandom | fold -w 32 | head -n 1)';
88
EOT
99
fi
10+
chgrp www-data /etc/phpmyadmin/config.secret.inc.php
1011

1112
if [ ! -f /etc/phpmyadmin/config.user.inc.php ]; then
1213
touch /etc/phpmyadmin/config.user.inc.php

0 commit comments

Comments
 (0)