mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-19 21:03:19 -07:00
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
This commit is contained in:
parent
acb8cc2fb8
commit
37f75bcd32
5 changed files with 351 additions and 416 deletions
|
@ -58,6 +58,11 @@ fi
|
|||
if [ $RET -ne 0 ] ; then
|
||||
# Make sure user gets an email about this (when not success or if user has specified when)
|
||||
cat ${LOGFILE} >&2
|
||||
|
||||
# Output will produce a cron email, so we can reset the exit status
|
||||
if [ $RET -eq 10 ]; then
|
||||
RET=0
|
||||
fi
|
||||
fi
|
||||
|
||||
rm "${LOGFILE}" 2>/dev/null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue