mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-30 22:30:53 +02:00
Update 41-folders
This commit is contained in:
@@ -4,18 +4,26 @@
|
|||||||
# SYMLINK CONFIG #
|
# 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 config doesn't exist, create it
|
||||||
if [ ! -d /data/config ]; then
|
if [ ! -d /share/piwigo/config ]; then
|
||||||
echo "moving config folder"
|
echo "moving config folder"
|
||||||
mv /gallery/local/config /data
|
mv /gallery/local/config /share/piwigo
|
||||||
ln -s /data/config /gallery/local
|
ln -s /share/piwigo/config /gallery/local
|
||||||
echo "links done"
|
echo "links done"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If keys don't exist, create it
|
# If keys don't exist, create it
|
||||||
if [ ! -d /data/keys ]; then
|
if [ ! -d /share/piwigo/keys ]; then
|
||||||
echo "moving keys folder"
|
echo "moving keys folder"
|
||||||
mv /config/keys /data
|
mv /config/keys /share/piwigo
|
||||||
ln -s /data/keys /config
|
ln -s /share/piwigo/keys /config
|
||||||
echo "links done"
|
echo "links done"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user