Update to https
This commit is contained in:
parent
556bf9ed8f
commit
e593b6a5b0
2 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ MAINTAINER Stian Larsen <lonixx@gmail.com>
|
||||||
RUN apt-get -q update && \
|
RUN apt-get -q update && \
|
||||||
VERSION=$(curl -s https://tools.linuxserver.io/latest-plex.json| grep "version" | cut -d '"' -f 4) && \
|
VERSION=$(curl -s https://tools.linuxserver.io/latest-plex.json| grep "version" | cut -d '"' -f 4) && \
|
||||||
apt-get install -qy dbus gdebi-core avahi-daemon wget && \
|
apt-get install -qy dbus gdebi-core avahi-daemon wget && \
|
||||||
wget -P /tmp "http://downloads.plexapp.com/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb" && \
|
wget -P /tmp "https://downloads.plexapp.com/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb" && \
|
||||||
gdebi -n /tmp/plexmediaserver_${VERSION}_amd64.deb && \
|
gdebi -n /tmp/plexmediaserver_${VERSION}_amd64.deb && \
|
||||||
rm -f /tmp/plexmediaserver_${VERSION}_amd64.deb && \
|
rm -f /tmp/plexmediaserver_${VERSION}_amd64.deb && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ if [[ "$VERSION" != "$INSTALLED" ]]; then
|
||||||
echo "Upgradeing from version: $INSTALLED to version: $VERSION"
|
echo "Upgradeing from version: $INSTALLED to version: $VERSION"
|
||||||
while [[ $last -ne "0" ]]; do
|
while [[ $last -ne "0" ]]; do
|
||||||
rm -f /tmp/plexmediaserver_*.deb
|
rm -f /tmp/plexmediaserver_*.deb
|
||||||
wget -P /tmp "http://downloads.plexapp.com/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb"
|
wget -P /tmp "https://downloads.plexapp.com/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb"
|
||||||
last=$?
|
last=$?
|
||||||
done
|
done
|
||||||
apt-get remove --purge -y plexmediaserver
|
apt-get remove --purge -y plexmediaserver
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue