mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-31 00:47:42 +01:00
30 lines
655 B
Plaintext
30 lines
655 B
Plaintext
#!/usr/bin/with-contenv bash
|
|
|
|
##################
|
|
# SYMLINK CONFIG #
|
|
##################
|
|
|
|
if [ ! -d /share/piwigo ]; then
|
|
echo "Creating /share/piwigo"
|
|
mkdir -p /share/piwigo
|
|
chown -R abc:abc /share/piwigo
|
|
else
|
|
chown -R abc:abc /share/piwigo
|
|
fi
|
|
|
|
# If config doesn't exist, create it
|
|
if [ ! -d /share/piwigo/config ]; then
|
|
echo "moving config folder"
|
|
mv /gallery/local/config /share/piwigo
|
|
ln -s /share/piwigo/config /gallery/local
|
|
echo "links done"
|
|
fi
|
|
|
|
# If keys don't exist, create it
|
|
if [ ! -d /share/piwigo/keys ]; then
|
|
echo "moving keys folder"
|
|
mv /config/keys /share/piwigo
|
|
ln -s /share/piwigo/keys /config
|
|
echo "links done"
|
|
fi
|