Commit graph

235 commits

Author SHA1 Message Date
Alex Malinovich
9ede6ab548
Fix branchname switching errors 2020-04-22 15:14:42 -04:00
Alex Malinovich
fc5bc96b69
Generalize Raspberry Pi support to all "armv7l" architectures 2020-04-20 15:33:55 -04:00
lisanet
fdbc94faf4
patch for Raspberry Pi 4 reporting as armv7l, whereas Plex only offers armv7hf_neon (#268) 2020-02-04 11:31:13 -08:00
Elliott Partridge
9e25638a2f
Expanded plex token characters to include '-' and '_' (#271)
Solves issue updating private builds
2020-02-04 11:30:12 -08:00
Alex Malinovich
54da6bca99
Switch to new API endpoint for public downloads. Fixes #254 2019-03-17 19:26:45 -07:00
Alex Malinovich
7723dfc97b
Switch to new API endpoint for PlexPass downloads. Fixes #224 2019-02-11 22:22:36 -08:00
Alex Malinovich
180fc1687f Use numeric ids instead of names for user/group in installer. Fixes #217 2018-04-22 18:43:07 -07:00
Alex Malinovich
293e6d5ecb
Improve version handling to prevent inadvertent downgrades (#226)
* Improve version handling to prevent inadvertent downgrades
* Add verbose output for version checking
* Improved git branch handling for testing
* Stay on current branch unless BRANCHNAME is set
* Add verbose output for in-use check
2018-04-14 20:42:23 -07:00
Alex Malinovich
17cac380b1 Make extras/installer install dependencies even when run as root 2018-04-14 19:30:39 -07:00
Alex Malinovich
a6953f1217 Fix quoting in running(). Fixes #227 2018-03-10 13:32:51 -08:00
Alex Malinovich
815e53122b
Merge pull request #221 from mrworf/in-use-check
In use check
2018-03-08 18:32:41 -08:00
Alex Malinovich
6932ee924d
Update FORCE option to only redownload if checksum fails 2018-02-09 19:21:45 -08:00
Alex Malinovich
69c5e52cea
Improve server in use check when using live TV/DVR
Monitor live TV and DVR sessions in addition to regular streams when
doing a in use check for the server. Paused streams are not considered
to be "in use" so if all streams that are playing are currently paused,
the updated will continue regardless.

Closes #177
2018-02-09 18:37:37 -08:00
Cody Cook
ec5e3b7fa4 Add SYSTEMDUNIT description to README.md (#210) 2017-11-05 12:57:51 -08:00
Cody Cook
551e664262 Add support for $SYSTEMDUNIT (#209)
Default SYSTEMDUNIT = plexmediaserver.service
Can be overwritten with configuration file.
2017-11-05 10:51:57 -08:00
Felix
aad9934099 Depricated wording (#207)
If the script exits on deprecated config-entries it should explicitly tell the user, that they have to remove the option.
2017-10-25 14:26:57 -07:00
guyincognito24601
cfb805b298 Split local variable declaration from assignment (#205)
This allows the return code to be correctly set.  Previously, RET was always being set to 0... the result of assigning the local variable.
2017-10-09 18:46:38 -07:00
Alex Malinovich
193f8f832a Check if server activity call requires a token before asking for one (#202) 2017-09-21 06:49:51 -07:00
Alex Malinovich
ab7f4052b1 Skip activity check if TOKEN is unavailable. Fixes #198 (#199) 2017-09-18 14:26:12 -07:00
Alex Malinovich
76416d1a25 Better error handling for wget (#194)
* Improved error handing for wget
2017-09-18 06:45:17 -07:00
Jon
483f9b06f7 Add error message specific to raspbian (#186) 2017-06-04 18:49:02 -07:00
Alex Malinovich
bcc96e354a Fix branchname (#176)
Do not assume <blank> is same as master on stone age versions of git
2017-03-07 21:58:47 -08:00
Alex Malinovich
37f75bcd32 Switch to using only tokens for plexupdate.sh (#169)
* Extract token fetching to extras/get-plex-token
* Have installer store TOKEN instead of EMAIL/PASS
* Provide easy way to pass git owner/branch while testing
* Use path when sourcing get-web-token
* Don't force interactive mode for EMAIL/PASS if they're already stored
* Re-enable getting plex token from server
* Try to read server token as sudo if possible
* Specify branch to clone in installer.sh
* Better checking of where token came from
* Make VERBOSE useful again
* Fix getPlexServerToken if installer.sh is being run from wget
* Extract functions into plexupdate-core
* Use plexupdate-core in installer
* Clean up usage and add --help
* Deprecate FORCEALL
* Make CHECKUPDATE check all program files
* Verify plex.tv is providing a checksum before downloading
* Add some more logging for release handling
* Use info/warn/error in plexupdate-core
* Remove outdated instructions from plexupdate.sh
* Only store tokens if PMS token is unavailable
* Warn users if fetching Plex token fails in installer
* Use local vars in functions and fix getRemoteSHA
* Update README
* Deprecate EMAIL/PASS and add token command-line option
* Quote option names
* Update FAQs
* Add link to FAQ in deprecation notice
* Remove trailing whitespace
* Make cron return 0 when plexupdate returns 10
2017-03-06 21:22:37 -08:00
Henric Andersson
acb8cc2fb8 Use of AUTOINSTALL/AUTOSTART when not root is an error
So we should actually fail early instead of continuing
2017-02-16 19:50:10 -08:00
Henric Andersson
59995961bb Add the capability to check for update ONLY 2017-02-16 19:49:06 -08:00
Alex Malinovich
869bb59b35 Check if users want to be notified of updates in installer.sh 2017-02-16 19:37:12 -08:00
Henric Andersson
9b0ec5de9d Make auto update more forgiving
plexupdate.sh should not fail because autoupdate cannot proceed.
2017-02-16 19:32:52 -08:00
Henric Andersson
6093805856 Accidentially changed default behavior
PUBLIC should be no again

Fixes 167
2017-02-16 19:29:53 -08:00
Henric Andersson
b487489aca Changes cron behavior to report when new version was installed (#165)
It's now possible to get an exit code when an update is found/installed.
2017-02-16 19:16:52 -08:00
Henric Andersson
a38f8496cb Don't emit token error unless email/pass is empty 2017-02-15 08:50:49 -08:00
Henric Andersson
0ad1928df6 Add helpful info when install fails 2017-02-15 08:47:25 -08:00
Henric Andersson
4c5669e35f Merge pull request #164 from mrworf/snown-stored-token-auth
Use stored token from Plex
2017-02-15 08:32:05 -08:00
Henric Andersson
f42e4b4f22 Fixed issue where assumptions were made about plex installation
Token file isn't necessarily defined by user nor is it installed in
user's home directory. This allows us to specify additional locations
to find the preference where the token hides.
2017-02-15 08:37:30 -08:00
Henric Andersson
8aaf6b2db7 Messed up the IF statements when fixing issue 2017-02-15 08:10:48 -08:00
Henric Andersson
0e28f1bbe7 Merge branch 'master' into stored-token-auth 2017-02-15 08:08:35 -08:00
Henric Andersson
96eb62b467 Warn users who forget to set PUBLIC=no
Even if you define email and password, the public version is still
downloaded unless PUBLIC=no

This change warns the user about this behavior since it's most likely
not intended.
2017-02-14 13:12:26 -08:00
Henric Andersson
2e26cd3dcc Added some helpful messages when plex.tv has an issue
We now tell the user to try plex.tv first if we were able to
get the release info but it lacks a functional link.
2017-02-02 12:44:24 -08:00
Logan Holmes
b52ce9178f Fall back on server token 2017-01-13 16:09:41 -08:00
Alex Malinovich
fdc24ff187 Improve security of config files (#153) 2016-12-19 21:41:38 -08:00
Henric Andersson
440de0cfe5 Deprecated exit code 5 and corrcted cronwrapper and enhanced README (#148)
* Deprecated exit code 5 and corrcted cronwrapper and enhanced README

- plexupdate.sh will consider no new version as success
- cronwrapper will not print anything unless it truly fails
- README.md updated to provide more details about .plexupdate

* Moved text from README.md to wiki and added notifyonreturn to cron

* Removed overthought part
2016-12-11 15:10:23 -08:00
Alex Malinovich
044ff5f132 Update deprecation message to be more useful (#147)
* Update deprecation message to be more useful
2016-12-10 15:05:02 -08:00
Alex Malinovich
7d24834d24 Run wget with -q when installing (#146) 2016-12-09 22:23:33 -08:00
Alex Malinovich
88a759a79c Installer script and cleanup
* Stop users from saving config with invalid download directory
* Added additional sanity for email checking
* Add installer script
* Update cronwrapper to work with installer script
* Add AUTOUPDATE to default config
* Read /etc/plexupdate.conf before other configs, if available
* Use dnf on newer redhat systems
* Only use plexupdate.conf or --config
* Give existing users explaination as to why plexupdate.sh failed
* Removed references to .plexupdate
* Warn users that .plexupdate is going away
* Offer to import settings in ~/.plexupdate.conf in installer (if they exist)
* Only show AUTOSTART warning if AUTOINSTALL is enabled
* Change default download directory to /tmp
* Warn users to run the installer as sudo
* Remove VAR_CL logic in favor of checking config before getopt run
* Use sha1sum for version check and auto-fix git permissions on exit
* Skip update check if AUTOUPDATE is enabled
* Fix permissions for all files, not just .git
* Don't enable -P in installer if we know it won't work
2016-12-09 22:00:48 -08:00
Alex Malinovich
760ad2b564 Fixes for cronwrapper behavior (#138)
* Fix cronwrapper failing if CONF is specified

* Exit code 0 means an update was applied, so we should send output

* Make sure wget log gets cleaned up along with other temp files

* Fix cronwrapper showing unwanted output even while logging
2016-12-09 22:00:48 -08:00
Henric Andersson
5c48315fa4 More error checking and documentation 2016-12-09 22:00:48 -08:00
Henric Andersson
12024f7581 Fixed various minor issues and spelling 2016-12-09 22:00:47 -08:00
Henric Andersson
2235bdd57f Fixed wiki link 2016-12-09 22:00:47 -08:00
Henric Andersson
7a24d162d5 Removed last pieces of quiet 2016-12-09 22:00:47 -08:00
Henric Andersson
d97df36de3 Initial commit after cleaning up log 2016-12-09 22:00:47 -08:00
Henric Andersson
fa7ef1da94 Relaxed email address check
Will only complain if you provide a malformed email address.

Fixes #141
2016-11-28 19:57:44 -08:00