Skip to content

Commit 9eadc91

Browse files
committed
fix: stabilize jellyfin setup defaults
1 parent 45ade44 commit 9eadc91

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

bootstrap.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,13 @@ echo -e "${CYAN}Running setup...${NC}"
207207
bash scripts/setup.sh --media-dir "$MEDIA_DIR"
208208

209209
# Write media server choice to .env
210+
if grep -q '^MEDIA_SERVER=' .env 2>/dev/null; then
211+
sed -i '' "s/^MEDIA_SERVER=.*/MEDIA_SERVER=$MEDIA_SERVER/" .env
212+
else
213+
echo "" >> .env
214+
echo "MEDIA_SERVER=$MEDIA_SERVER" >> .env
215+
fi
210216
if [[ "$MEDIA_SERVER" == "jellyfin" ]]; then
211-
if grep -q '^MEDIA_SERVER=' .env 2>/dev/null; then
212-
sed -i '' 's/^MEDIA_SERVER=.*/MEDIA_SERVER=jellyfin/' .env
213-
else
214-
echo "" >> .env
215-
echo "MEDIA_SERVER=jellyfin" >> .env
216-
fi
217217
mkdir -p "$MEDIA_DIR/config/jellyfin"
218218
fi
219219

scripts/configure.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,15 +487,15 @@ if [[ "$NON_INTERACTIVE" == true ]]; then
487487
if [[ "$MEDIA_SERVER" == "jellyfin" ]]; then
488488
warn "Non-interactive mode: skipping Seerr Jellyfin sign-in prompt."
489489
warn "Manually open http://localhost:5055, select \"Use your Jellyfin account\","
490-
warn "and enter http://host.docker.internal:8096 as the Jellyfin URL."
490+
warn "and enter http://jellyfin:8096 as the Jellyfin URL."
491491
else
492492
warn "Non-interactive mode: skipping Seerr Plex sign-in prompt."
493493
warn "Manually open http://localhost:5055 and sign in with Plex, then configure services in Seerr."
494494
fi
495495
elif [[ "$MEDIA_SERVER" == "jellyfin" ]]; then
496496
echo -e " ${YELLOW}ACTION NEEDED:${NC} Open ${CYAN}http://localhost:5055${NC} in your browser"
497497
echo " 1. Click \"Use your Jellyfin account\""
498-
echo " 2. Enter Jellyfin URL: ${CYAN}http://host.docker.internal:8096${NC}"
498+
echo " 2. Enter Jellyfin URL: ${CYAN}http://jellyfin:8096${NC}"
499499
echo " 3. Enter your Jellyfin username and password"
500500
echo ""
501501
read -p " Press Enter after you've signed in to Seerr..."

0 commit comments

Comments
 (0)