From f29b2237e9837cdf334f1649a91b1888913b871e Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 8 Jan 2022 08:31:28 +0100 Subject: [PATCH] Update 99-run.sh --- webtrees/rootfs/scripts/99-run.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webtrees/rootfs/scripts/99-run.sh b/webtrees/rootfs/scripts/99-run.sh index 38e690971..2dce66815 100644 --- a/webtrees/rootfs/scripts/99-run.sh +++ b/webtrees/rootfs/scripts/99-run.sh @@ -100,8 +100,13 @@ for VOL in "data" "media" "modules_v4"; do mkdir -p $OLD_WEBTREES_HOME/$VOL cp -rn $OLD_WEBTREES_HOME/$VOL $WEBTREES_HOME || true rm -r $OLD_WEBTREES_HOME/$VOL || true - ln -s $WEBTREES_HOME/$VOL $OLD_WEBTREES_HOME || true done + +for VOL in $(ls -d */ | cut -f1 -d'/'); do + echo "... linking $VOL" + ln -s $WEBTREES_HOME/$VOL $OLD_WEBTREES_HOME +done + chown -R www-data:www-data $WEBTREES_HOME # Correct base url if needed