diff --git a/5/entrypoint.sh b/5/entrypoint.sh index 15fa976..45d81ab 100755 --- a/5/entrypoint.sh +++ b/5/entrypoint.sh @@ -9,6 +9,14 @@ if [ -n "$ADMINER_DESIGN" ]; then fi fi +if [ -n "$ADMINER_DESIGN_DARK" ]; then + # Only create link on initial start, to ensure that explicit changes to + # adminer-dark.css after the container was started once are preserved. + if [ ! -e .adminer-init ]; then + ln -sf "designs/$ADMINER_DESIGN_DARK/adminer-dark.css" . + fi +fi + number=1 for PLUGIN in $ADMINER_PLUGINS; do php plugin-loader.php "$PLUGIN" > plugins-enabled/$(printf "%03d" $number)-$PLUGIN.php diff --git a/5/fastcgi/entrypoint.sh b/5/fastcgi/entrypoint.sh index 15fa976..45d81ab 100755 --- a/5/fastcgi/entrypoint.sh +++ b/5/fastcgi/entrypoint.sh @@ -9,6 +9,14 @@ if [ -n "$ADMINER_DESIGN" ]; then fi fi +if [ -n "$ADMINER_DESIGN_DARK" ]; then + # Only create link on initial start, to ensure that explicit changes to + # adminer-dark.css after the container was started once are preserved. + if [ ! -e .adminer-init ]; then + ln -sf "designs/$ADMINER_DESIGN_DARK/adminer-dark.css" . + fi +fi + number=1 for PLUGIN in $ADMINER_PLUGINS; do php plugin-loader.php "$PLUGIN" > plugins-enabled/$(printf "%03d" $number)-$PLUGIN.php