fixed End Of Line Sequence

This commit is contained in:
Bruvv
2021-12-27 10:28:02 +01:00
parent 494a6c06fd
commit 87615ff031
47 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +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 "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