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.

This commit is contained in:
Adrian Malacoda
2014-11-24 00:41:30 -06:00
parent c90fd0d343
commit 6a1a135392
2 changed files with 12 additions and 5 deletions

6
setup.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
if [[ ! -d /var/lib/mediawiki/skins ]]; then
mv /app/images /var/lib/mediawiki/ && ln -s /var/lib/mediawiki/images /app/images
mv /app/skins /var/lib/mediawiki/ && ln -s /var/lib/mediawiki/skins /app/skins
fi