Logo
Explore Help
Register Sign In
monarch-pass/mediawiki
1
0
Fork 0
You've already forked mediawiki
Code Issues Pull Requests Releases Wiki Activity
mediawiki/setup.sh

14 lines
283 B
Bash
Raw Normal View History

We need to set up the volume when the container runs, not when it is built, because mounting a volume over /var/lib/mediawiki will shadow the contents of that directory in the image.
2014-11-24 00:41:30 -06:00
#!/bin/bash
revive this repository into an extension of the official mediawiki image to be used on malacodapedia and eventually other monarch-pass wikis
2019-06-16 00:28:13 -05:00
HTML_ROOT=/var/www/html
Run updater in setup.sh
2014-12-05 09:43:56 -06:00
Only run updater if we have a LocalSettings.php available
2016-01-17 04:58:15 -06:00
# Run updater if we have an existing install
revive this repository into an extension of the official mediawiki image to be used on malacodapedia and eventually other monarch-pass wikis
2019-06-16 00:28:13 -05:00
if [[ -e "$HTML_ROOT/LocalSettings.php" ]]; then
cd "$HTML_ROOT/maintenance"
add wait-for-it and get-variable, these will be used to determine the proper address of the database and wait for it to connect
2019-06-16 14:45:09 -05:00
DB_SERVER=$(/get-variable wgDBserver)
/wait-for-it "$DB_SERVER:3306"
Only run updater if we have a LocalSettings.php available
2016-01-17 04:58:15 -06:00
php update.php
fi
revive this repository into an extension of the official mediawiki image to be used on malacodapedia and eventually other monarch-pass wikis
2019-06-16 00:28:13 -05:00
apache2-foreground
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 1064ms Template: 54ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API