From 9436c1d0b1563c681ff18b0223e4cb0aaac93257 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 29 Dec 2024 08:19:39 +0100 Subject: [PATCH] Update 99-run.sh --- grampsweb/rootfs/etc/cont-init.d/99-run.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/grampsweb/rootfs/etc/cont-init.d/99-run.sh b/grampsweb/rootfs/etc/cont-init.d/99-run.sh index ef2687b7a..5dc93dd64 100755 --- a/grampsweb/rootfs/etc/cont-init.d/99-run.sh +++ b/grampsweb/rootfs/etc/cont-init.d/99-run.sh @@ -14,11 +14,11 @@ for folders in config users indexdir database secret media cache thumbnail_cache ln -sf /config/"$folders" /app/"$folders" done -if [ -d /root/.gramps/grampsdb ] && [ "$(ls -A /root/.gramps/grampsdb)" ]; then - mkdir -p /config/grampsdb - cp -rn /root/.gramps/grampsdb/* /config/grampsdb - rm -rf /root/.gramps/grampsdb - ln -sf /config/grampsdb /root/.gramps/grampsdb +if [ -d /root/.gramps ] && [ "$(ls -A /root/.gramps)" ]; then + mkdir -p /config/gramps + cp -rn /root/.gramps/* /config/gramps + rm -rf /root/.gramps + ln -sf /config/gramps /root/.gramps fi #####################