Update to https

pull/8/head
Stian Buch Larsen 9 years ago
parent 556bf9ed8f
commit e593b6a5b0

@ -5,7 +5,7 @@ MAINTAINER Stian Larsen <lonixx@gmail.com>
RUN apt-get -q update && \
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 && \
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 && \
rm -f /tmp/plexmediaserver_${VERSION}_amd64.deb && \
apt-get clean && \

@ -22,7 +22,7 @@ if [[ "$VERSION" != "$INSTALLED" ]]; then
echo "Upgradeing from version: $INSTALLED to version: $VERSION"
while [[ $last -ne "0" ]]; do
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=$?
done
apt-get remove --purge -y plexmediaserver

Loading…
Cancel
Save