mirror of
https://github.com/phpmyadmin/docker.git
synced 2026-08-24 10:13:22 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user