From fea89ec232ecc436a12f4333acce9e7f03f22fd4 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Thu, 7 Sep 2023 10:17:36 +0200 Subject: [PATCH] Fix plug-ins with parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When I enabled `ADMINER_PLUGINS=login-servers` and created `plugins-enabled/login-servers.php` as instructed in the plugin-loader error message, it would still try to create its own file in plugins-enabled, and then continue to complain, not noticing the file I added. Let’s skip creating the file when a manually created one exists. --- 4/entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/4/entrypoint.sh b/4/entrypoint.sh index 15fa976..9422428 100755 --- a/4/entrypoint.sh +++ b/4/entrypoint.sh @@ -11,7 +11,9 @@ fi number=1 for PLUGIN in $ADMINER_PLUGINS; do - php plugin-loader.php "$PLUGIN" > plugins-enabled/$(printf "%03d" $number)-$PLUGIN.php + if [ ! -f plugins-enabled/$PLUGIN.php ]; then + php plugin-loader.php "$PLUGIN" > plugins-enabled/$(printf "%03d" $number)-$PLUGIN.php + fi number=$(($number+1)) done