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

10 lines
252 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
if we deploy a new image on top of an existing install then it will overwrite the symlinks going to the shared volume, so check if the file is a symlink and if not then create the link
2014-11-24 02:00:05 -06:00
if [[ ! -h /app/skins ]]; then
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
mv /app/skins /var/lib/mediawiki/ && ln -s /var/lib/mediawiki/skins /app/skins
fi
if we deploy a new image on top of an existing install then it will overwrite the symlinks going to the shared volume, so check if the file is a symlink and if not then create the link
2014-11-24 02:00:05 -06:00
if [[ ! -h /app/images ]]; then
mv /app/images /var/lib/mediawiki/ && ln -s /var/lib/mediawiki/images /app/images
fi
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 739ms Template: 50ms
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