mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-11 01:55:59 +02:00
Update and rename 41-folders to 21-folders
This commit is contained in:
15
plex/root/etc/cont-init.d/21-folders
Normal file
15
plex/root/etc/cont-init.d/21-folders
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
##################
|
||||||
|
# SYMLINK CONFIG #
|
||||||
|
##################
|
||||||
|
|
||||||
|
if [ ! -d "/share/plex/Plex Media Server" ]; then
|
||||||
|
mkdir "/share/plex" || true
|
||||||
|
mkdir "/share/plex/Plex Media Server" || true
|
||||||
|
echo "Copying Library folder"
|
||||||
|
mv "/config/Library/Application Support/Plex Media Server" "/share/plex"
|
||||||
|
ln -s "/share/plex/Plex Media Server" "/config/Library/Application Support/Plex Media Server"
|
||||||
|
else
|
||||||
|
chown -R abc:abc /share/plex
|
||||||
|
fi
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
|
||||||
|
|
||||||
##################
|
|
||||||
# SYMLINK CONFIG #
|
|
||||||
##################
|
|
||||||
|
|
||||||
if [ ! -d /share/plex ]; then
|
|
||||||
mkdir /share/plex || true
|
|
||||||
echo "Copying Library folder"
|
|
||||||
mv /config/Library /share/plex
|
|
||||||
ln -s /share/plex/Library /config
|
|
||||||
else
|
|
||||||
chown -R abc:abc /share/plex
|
|
||||||
fi
|
|
||||||
Reference in New Issue
Block a user