mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-14 10:36:55 -07:00
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
This commit is contained in:
parent
044ff5f132
commit
440de0cfe5
3 changed files with 11 additions and 11 deletions
|
@ -14,10 +14,6 @@
|
|||
# LOGGING if true, logs all output to syslog daemon facility
|
||||
# (typically /var/log/daemon.log or /var/log/syslog)
|
||||
#
|
||||
# Set CONFIGURED to true once you've setup the previous three
|
||||
# options.
|
||||
#
|
||||
|
||||
|
||||
if [ ! -f /etc/plexupdate.cron.conf ]; then
|
||||
echo "ERROR: You have not configured /etc/plexupdate.cron.conf" >&2
|
||||
|
@ -59,12 +55,9 @@ else
|
|||
RET=$?
|
||||
fi
|
||||
|
||||
if [ $RET -ne 2 -a $RET -ne 5 ]; then
|
||||
# Make sure user gets an email about this
|
||||
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
|
||||
else
|
||||
# Nah, not important
|
||||
RET=0
|
||||
fi
|
||||
|
||||
rm "${LOGFILE}" 2>/dev/null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue