diff --git a/piwigo/rootfs/etc/cont-init.d/01-folders b/piwigo/rootfs/etc/cont-init.d/01-folders new file mode 100644 index 000000000..46ca7e292 --- /dev/null +++ b/piwigo/rootfs/etc/cont-init.d/01-folders @@ -0,0 +1,12 @@ +#!/usr/bin/with-contenv bash + +################## +# SYMLINK CONFIG # +################## + +# If config doesn't exist, create it +if [ ! -d /data/config ]; then + mv /gallery/local/config /data + mkdir -p /gallery/local/config + ln -s /data/config /gallery/local/config +fi