mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 15:45:56 +02:00
Update 90-create_links.sh
This commit is contained in:
@@ -9,16 +9,14 @@ if [ ! -d /share/plex ]; then
|
|||||||
mkdir -p /share/plex
|
mkdir -p /share/plex
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d /share/plex/Library ]; then
|
if [ ! -d /share/plex/Library ] && [ -d /config/Library ]; then
|
||||||
echo "moving Library folder"
|
echo "moving Library folder"
|
||||||
mv /config/Library /share/plex
|
mv /config/Library /share/plex
|
||||||
ln -s /share/plex/Library /config
|
|
||||||
echo "links done"
|
|
||||||
else
|
else
|
||||||
rm -r /config/Library
|
rm -r /config/Library
|
||||||
ln -s /share/plex/Library /config
|
|
||||||
echo "Using existing config"
|
echo "Using existing config"
|
||||||
fi
|
fi
|
||||||
|
ln -sf /share/plex/Library /config
|
||||||
|
|
||||||
# Only fix ownership/mode if needed (top-level only—*not* blindly every file)
|
# Only fix ownership/mode if needed (top-level only—*not* blindly every file)
|
||||||
PUID="$(bashio::config "PUID")"
|
PUID="$(bashio::config "PUID")"
|
||||||
|
|||||||
Reference in New Issue
Block a user