Update 99-run.sh

This commit is contained in:
Alexandre
2022-01-08 08:31:28 +01:00
committed by GitHub
parent 576b7cfef6
commit f29b2237e9

View File

@@ -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