Update and rename 41-folders to 21-folders

This commit is contained in:
Alexandre
2021-09-03 09:39:37 +02:00
committed by GitHub
parent 496fe5fa33
commit 8cc05112dc
2 changed files with 15 additions and 14 deletions

View 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

View File

@@ -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