From 6ab490e703ba5ba0d0c4b52369fd977a2e72f5a7 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 21 Feb 2023 22:01:01 +0100 Subject: [PATCH] Update 41-folders.sh --- piwigo/rootfs/etc/cont-init.d/41-folders.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piwigo/rootfs/etc/cont-init.d/41-folders.sh b/piwigo/rootfs/etc/cont-init.d/41-folders.sh index 751625c34..055b7a231 100755 --- a/piwigo/rootfs/etc/cont-init.d/41-folders.sh +++ b/piwigo/rootfs/etc/cont-init.d/41-folders.sh @@ -21,7 +21,7 @@ if [ ! -d /share/piwigo/config ] && [ -d /config/www/local/config ]; then ln -s /share/piwigo/config /config/www/local echo "links done" else - rm -r /config/www/local/config + if [ -d /config/www/local/config ]; then rm -r /config/www/local/config; fi ln -s /share/piwigo/config /config/www/local echo "Using existing config" fi