File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -207,13 +207,13 @@ echo -e "${CYAN}Running setup...${NC}"
207207bash 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
210216if [[ " $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"
218218fi
219219
Original file line number Diff line number Diff 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
495495elif [[ " $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..."
You can’t perform that action at this time.
0 commit comments