Skip to content

Commit

Permalink
Fix Permissions og config.secret.inc.php
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
obel1x authored Dec 29, 2023
1 parent 272944c commit 3e0bcce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e0bcce

Please sign in to comment.