Skip to content

Commit f930326

Browse files
committed
👕 Use bashio for file exists check
1 parent 39bbc96 commit f930326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ declare port
99
declare username
1010
declare database
1111

12-
if [ ! -f /data/config.secret.inc.php ]; then
12+
if ! bashio::fs.file_exists "/data/config.secret.inc.php"; then
1313
cat > /data/config.secret.inc.php <<EOT
1414
<?php
1515
\$cfg['blowfish_secret'] = '$(tr -dc 'a-zA-Z0-9~!@#$%^&*_()+}{?></";.,[]=-' < /dev/urandom | fold -w 32 | head -n 1)';

0 commit comments

Comments
 (0)