mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-21 20:16:28 +01:00
16 lines
458 B
Plaintext
16 lines
458 B
Plaintext
#!/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
|