Skip to content

Commit

Permalink
Remove back-compat from image
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed Oct 6, 2024
1 parent f8bb5d3 commit 9cfae5e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions dockers/femiwiki/run
Original file line number Diff line number Diff line change
Expand Up @@ -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' \
Expand Down

0 comments on commit 9cfae5e

Please sign in to comment.