mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-22 05:50:31 +02:00
Create 01-folders
This commit is contained in:
12
piwigo/rootfs/etc/cont-init.d/01-folders
Normal file
12
piwigo/rootfs/etc/cont-init.d/01-folders
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user