From 8f5c29055e5efa721162ef4b6480bb677be5fd93 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 31 Aug 2021 15:30:02 +0200 Subject: [PATCH] Update 21-folders --- piwigo/rootfs/etc/cont-init.d/21-folders | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/piwigo/rootfs/etc/cont-init.d/21-folders b/piwigo/rootfs/etc/cont-init.d/21-folders index b1204e2e1..dd5036b21 100644 --- a/piwigo/rootfs/etc/cont-init.d/21-folders +++ b/piwigo/rootfs/etc/cont-init.d/21-folders @@ -23,6 +23,10 @@ if [ ! -d /share/piwigo/config ]; then mv /gallery/local/config /share/piwigo ln -s /share/piwigo/config /gallery/local echo "links done" +else + rm /gallery/local/config + ln -s /share/piwigo/config /gallery/local + echo "links done" fi # If keys don't exist, create it @@ -31,4 +35,7 @@ if [ ! -d /share/piwigo/keys ]; then mv /config/keys /share/piwigo ln -s /share/piwigo/keys /config echo "links done" +else + rm /config/keys + ln -s /share/piwigo/keys /config fi