Beautify bash

This commit is contained in:
alexbelgium
2022-03-16 09:56:19 +00:00
committed by GitHub
parent 9ad60be58b
commit dc791623d5
146 changed files with 2017 additions and 2017 deletions

View File

@@ -5,20 +5,20 @@
##################
if [ ! -d /share/plex ]; then
echo "Creating /share/plex"
mkdir -p /share/plex
chown -R abc:abc /share/plex
echo "Creating /share/plex"
mkdir -p /share/plex
chown -R abc:abc /share/plex
else
chown -R abc:abc /share/plex
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"
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"
rm -r /config/Library
ln -s /share/plex/Library /config
echo "Using existing config"
fi