Files
hassio-addons/piwigo/rootfs/etc/cont-init.d/41-folders
2021-08-31 14:42:20 +02:00

15 lines
318 B
Plaintext

#!/usr/bin/with-contenv bash
##################
# SYMLINK CONFIG #
##################
# If config doesn't exist, create it
if [ ! -d /data/config ]; then
echo "moving config folder"
mv /gallery/local/config /data
mkdir -p /gallery/local/config
ln -s /data/config /gallery/local/config
echo "links done"
fi