Update Dockerfile for plex
This commit is contained in:
parent
23bec9b7b2
commit
12e5da42c0
|
@ -3,7 +3,7 @@ MAINTAINER Jean Froment <froment.je@gmail.com>
|
|||
|
||||
# Download plexupdate script and install Plex
|
||||
# This script can be later used to update Plex directly in the container
|
||||
RUN curl -sL "https://raw.githubusercontent.com/Kelvin-Chen/plexupdate/master/plexupdate.sh" \
|
||||
RUN curl -sL "https://github.com/mrworf/plexupdate/raw/master/plexupdate.sh" \
|
||||
> /usr/local/bin/plexupdate \
|
||||
&& chmod +x /usr/local/bin/plexupdate \
|
||||
&& plexupdate -pad \
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Update to latest plexpass version
|
||||
if [[ "$PLEX_EMAIL" ]]; then
|
||||
plexupdate -ad --email "$PLEX_EMAIL" --pass "$PLEX_PASSWORD"
|
||||
fi
|
||||
|
||||
mkdir -p "/config/Plex Media Server/"
|
||||
cp -n /Preferences.xml "/config/Plex Media Server/"
|
||||
rm -f "/config/Plex Media Server/plexmediaserver.pid"
|
||||
|
|
Loading…
Reference in New Issue