Fix for version page now being JSON

This commit is contained in:
Adam Dodman 2017-07-17 18:51:46 +01:00
parent ad3636b211
commit 96604f6e17
2 changed files with 3 additions and 3 deletions

View File

@ -8,8 +8,8 @@ pipeline:
image: docker image: docker
commands: commands:
# Grab the current version, prevents race conditions #### Pass this into the Dockerfile somehow? # Grab the current version, prevents race conditions #### Pass this into the Dockerfile somehow?
- apk add --no-cache openssl - apk add --no-cache openssl jq
- wget -qO- https://adam-ant.co.uk/plex/version.php > .plex_version - wget -qO- https://adam-ant.co.uk/plex/version.php | jq -r .release> .plex_version
build: build:
image: docker image: docker

View File

@ -13,7 +13,7 @@ RUN wget http://ftp.de.debian.org/debian/pool/main/g/gcc-4.9/libstdc++6_4.9.2-10
# We only need the lib files, everything else is debian junk. # We only need the lib files, everything else is debian junk.
&& mv /tmp/usr/lib/x86_64-linux-gnu/* /lib \ && mv /tmp/usr/lib/x86_64-linux-gnu/* /lib \
&& mv /tmp/lib/x86_64-linux-gnu/* /lib \ && mv /tmp/lib/x86_64-linux-gnu/* /lib \
&& export PLEX_VER=$(wget -qO- https://adam-ant.co.uk/plex/version.php) \ && export PLEX_VER=$(wget -qO- https://adam-ant.co.uk/plex/version.php | sed -n 's/.*"release":\s*"\([^"]*\)".*/\1/p') \
&& wget -O plexmediaserver.deb "https://downloads.plex.tv/plex-media-server/$PLEX_VER/plexmediaserver_"$PLEX_VER"_amd64.deb" \ && wget -O plexmediaserver.deb "https://downloads.plex.tv/plex-media-server/$PLEX_VER/plexmediaserver_"$PLEX_VER"_amd64.deb" \
&& dpkg-deb -x plexmediaserver.deb . \ && dpkg-deb -x plexmediaserver.deb . \
# Move usr/lib and start_pms. Everything else is useless # Move usr/lib and start_pms. Everything else is useless