mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-14 17:04:26 +01: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