From 9cfae5e2ce4deda895ce9d607a56bcf355267e18 Mon Sep 17 00:00:00 2001 From: lens0021 Date: Sun, 6 Oct 2024 12:44:58 +0900 Subject: [PATCH] Remove back-compat from image --- dockers/femiwiki/run | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/dockers/femiwiki/run b/dockers/femiwiki/run index 58a63f57..75bdf3d6 100755 --- a/dockers/femiwiki/run +++ b/dockers/femiwiki/run @@ -9,15 +9,9 @@ echo 'Starting Femiwiki ...' # Run Install.php if [ -z "${MEDIAWIKI_SKIP_INSTALL:-}" ]; then echo 'Start installing Mediawiki ...' - if [ -f /a/secret.php ]; then - DB_HOSTNAME="$(php -r 'require "/a/secret.php"; echo $wgDBserver;')" - DB_USERNAME="$(php -r 'require "/a/secret.php"; echo $wgDBuser;')" - DB_PASSWORD="$(php -r 'require "/a/secret.php"; echo $wgDBpassword;')" - else - DB_HOSTNAME="$(php -r 'require "/a/secrets.php"; echo $wgDBserver;')" - DB_USERNAME="$(php -r 'require "/a/secrets.php"; echo $wgDBuser;')" - DB_PASSWORD="$(php -r 'require "/a/secrets.php"; echo $wgDBpassword;')" - fi + DB_HOSTNAME="$(php -r 'require "/a/secrets.php"; echo $wgDBserver;')" + DB_USERNAME="$(php -r 'require "/a/secrets.php"; echo $wgDBuser;')" + DB_PASSWORD="$(php -r 'require "/a/secrets.php"; echo $wgDBpassword;')" php /srv/femiwiki.com/maintenance/install.php \ --lang ko \ --scriptpath '/w' \