Skip to content

Commit 40ff533

Browse files
committed
🚑 Fix permissions and checks
1 parent 3835929 commit 40ff533

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

phpmyadmin/rootfs/etc/cont-init.d/phpmyadmin.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ if [ ! -f /data/config.secret.inc.php ]; then
1515
\$cfg['blowfish_secret'] = '$(tr -dc 'a-zA-Z0-9~!@#$%^&*_()+}{?></";.,[]=-' < /dev/urandom | fold -w 32 | head -n 1)';
1616
EOT
1717
fi
18+
chmod 640 /data/config.secret.inc.php
1819

1920
host=$(bashio::services "mysql" "host")
2021
password=$(bashio::services "mysql" "password")

phpmyadmin/rootfs/etc/phpmyadmin/config.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require('/data/config.secret.inc.php');
44

55
$cfg['AllowThirdPartyFraming'] = true;
6+
$cfg['CheckConfigurationPermissions'] = false;
67
$cfg['ZeroConf'] = false;
78
$cfg['UploadDir'] = '';
89
$cfg['SaveDir'] = '';

0 commit comments

Comments
 (0)