Skip to content

Commit

Permalink
Update 20-folders.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Nov 5, 2023
1 parent ab33911 commit f070573
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions jellyfin/rootfs/etc/cont-init.d/20-folders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ for folders in "cache" "log" "data/metadata"; do
echo "Creating link for /jellyfin/$folders"
mkdir -p /data/"$folders"
chown -R "$PUID:$PGID" /data/"$folders"
if [ -d "$LOCATION/$folders" ]; then
echo "Previous $folders found, migrating to /data"
cp -r "$LOCATION/$folders/*" /data/"$folders"/
rm -r "${LOCATION:?}/$folders"
fi
rm -r "$LOCATION/$folders"
mkdir -p "$LOCATION/$folders"
ln -s /data/"$folders" "$LOCATION/$folders"
done

0 comments on commit f070573

Please sign in to comment.