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