Closed wernight closed 8 years ago
Not possible to do a fallback system ? (to latest public or known plex pass)
Good point.
Could wait for input if stdin is open or show a message for something like 30 sec if stdin is closed, and after skip the update part.
However if the user never installed it, it'd fail which I think is okay. The alternative would increase image size and some users may think it autoupdates when it fails due to their network or something.
Or it could be great to force a link by an ENV var at run. For example, if it's crashing as actually, i can go to plex, copy link and force it in my run command, so container will be usable with last plex pass version. And we can wait for an updated image :)
Through environment sound hacky and edge case; like for people who really really cannot for to get latest version and have some decent system/programming knowledge, like you. ;)
It will be invisible for end user, but available for us by putting
-e PLEX_DL='https://downloads.plex.tv/plex-media-server/0.9.15.0.1621-344f193/plexmediaserver_0.9.15.0.1621-344f193_amd64.deb'
:)
Feel free to submit in PR. With the two new commits it should be pretty solid.
If you do, I'd recommend using explicit names like PLEX_FORCE_DOWNLOAD_URL
and/or PLEX_SKIP_UPDATE
.
Outside of those it should also show a clear error if username/password are wrong, see #13.
So summary:
docker pull
(DONE)PLEX_FORCE_DOWNLOAD_URL
and PLEX_SKIP_UPDATE
(TODO)
If an error occurs during auto-update retrieval or install of Plex, show a clearly visible message inviting to do a
docker pull wernight/plex-media-server:autoupdate
ordocker-compose pull
.