Skip to content

Commit

Permalink
v7.1
Browse files Browse the repository at this point in the history
+ DietPi-Software | Plex Media Server: When Unbound is installed, add "plex.direct" to private domains to fix secure remote access via app.plex.tv: https://dietpi.com/phpbb/viewtopic.php?t=8896
  • Loading branch information
MichaIng authored Apr 28, 2021
1 parent ad87c4a commit d79703f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -4753,6 +4753,9 @@ amvdec_vp9' > /etc/modules-load.d/dietpi-c4-kodi.conf
G_EXEC sed -i '/^[[:blank:]]*PIHOLE_DNS_2=/d' /etc/pihole/setupVars.conf
fi
fi

# Plex Media Server: Fix secure remote access: https://dietpi.com/phpbb/viewtopic.php?t=8896
(( ${aSOFTWARE_INSTALL_STATE[42]} > 0 )) && echo -e 'server:\n\tprivate-domain: "plex.direct"' > /etc/unbound/unbound.conf.d/dietpi-plex.conf

This comment has been minimized.

Copy link
@Joulinar

Joulinar Apr 28, 2021

Collaborator

should we check if the file already exist? Like an re-install?

This comment has been minimized.

Copy link
@MichaIng

MichaIng Apr 28, 2021

Author Owner

I think it's okay to simply overwrite it. Or do we expect that users change it?

This comment has been minimized.

Copy link
@Joulinar

Joulinar Apr 28, 2021

Collaborator

true, usually it's used on this purpose only. But is it overwriting the file or will it add a new line on re-install?

This comment has been minimized.

Copy link
@MichaIng

MichaIng Apr 28, 2021

Author Owner

> overwrites files, >> would append.

This comment has been minimized.

Copy link
@Joulinar

Joulinar Apr 28, 2021

Collaborator

Oki 😃

fi

software_id=93 # Pi-hole
Expand Down Expand Up @@ -10789,6 +10792,9 @@ location = /.well-known/caldav {
G_EXEC mkdir -p /etc/systemd/system/plexmediaserver.service.d
echo -e '[Service]\nGroup=' > /etc/systemd/system/plexmediaserver.service.d/dietpi-group.conf

# Unbound: Fix secure remote access: https://dietpi.com/phpbb/viewtopic.php?t=8896
(( ${aSOFTWARE_INSTALL_STATE[182]} == 2 )) && echo -e 'server:\n\tprivate-domain: "plex.direct"' > /etc/unbound/unbound.conf.d/dietpi-plex.conf

This comment has been minimized.

Copy link
@Joulinar

Joulinar Apr 28, 2021

Collaborator

should we check if the file already exist? Like an re-install?


Download_Test_Media

fi
Expand Down Expand Up @@ -15018,7 +15024,7 @@ _EOF_
fi
[[ -d '/var/lib/plexmediaserver' ]] && rm -R /var/lib/plexmediaserver # Left over from purging package, still...
[[ -d '/etc/systemd/system/plexmediaserver.service.d' ]] && rm -R /etc/systemd/system/plexmediaserver.service.d

[[ -f '/etc/unbound/unbound.conf.d/dietpi-plex.conf' ]] && rm /etc/unbound/unbound.conf.d/dietpi-plex.conf
fi

software_id=52 # Cuberite
Expand Down

0 comments on commit d79703f

Please sign in to comment.