mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-04 14:54:07 +02:00
Update 20-folders
This commit is contained in:
@@ -1,13 +1,24 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
##################
|
||||||
|
# SYMLINK CONFIG #
|
||||||
|
##################
|
||||||
|
|
||||||
if [ ! -d /share/plex ]; then
|
if [ ! -d /share/plex ]; then
|
||||||
echo "Creating /share/plex"
|
echo "Creating /share/plex"
|
||||||
mkdir -p /share/plex
|
mkdir -p /share/plex
|
||||||
chown -R abc:abc /share/plex
|
chown -R abc:abc /share/plex
|
||||||
|
else
|
||||||
|
chown -R abc:abc /share/plex
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d /share/plex/Library ]; then
|
if [ ! -d /share/plex/Library ]; then
|
||||||
echo "Creating /share/plex/Library"
|
echo "moving Library folder"
|
||||||
mkdir -p /share/plex/Library
|
mv /config/Library /share/plex
|
||||||
chown -R abc:abc /share/plex/Library
|
ln -s /share/plex/Library /config
|
||||||
|
echo "links done"
|
||||||
|
else
|
||||||
|
rm -r /config/Library
|
||||||
|
ln -s /share/plex/Library /config
|
||||||
|
echo "Using existing config"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user