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
This commit is contained in:
7
setup.sh
7
setup.sh
@@ -1,6 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ ! -d /var/lib/mediawiki/skins ]]; then
|
||||
mv /app/images /var/lib/mediawiki/ && ln -s /var/lib/mediawiki/images /app/images
|
||||
if [[ ! -h /app/skins ]]; then
|
||||
mv /app/skins /var/lib/mediawiki/ && ln -s /var/lib/mediawiki/skins /app/skins
|
||||
fi
|
||||
|
||||
if [[ ! -h /app/images ]]; then
|
||||
mv /app/images /var/lib/mediawiki/ && ln -s /var/lib/mediawiki/images /app/images
|
||||
fi
|
||||
|
Reference in New Issue
Block a user