Update 20-folders

This commit is contained in:
Alexandre
2021-08-31 18:27:38 +02:00
committed by GitHub
parent aaa3fdba84
commit 4ca5fad7dc

View File

@@ -1,13 +1,24 @@
#!/usr/bin/with-contenv bash
##################
# SYMLINK CONFIG #
##################
if [ ! -d /share/plex ]; then
echo "Creating /share/plex"
mkdir -p /share/plex
chown -R abc:abc /share/plex
else
chown -R abc:abc /share/plex
fi
if [ ! -d /share/plex/Library ]; then
echo "Creating /share/plex/Library"
mkdir -p /share/plex/Library
chown -R abc:abc /share/plex/Library
echo "moving Library folder"
mv /config/Library /share/plex
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