diff --git a/README.md b/README.md old mode 100644 new mode 100755 index 1c0735f..305bab8 --- a/README.md +++ b/README.md @@ -161,6 +161,10 @@ But here are some of the more useful ones: See explanation in the top of this document. +## Do I have to use the `extras/installer.sh` ? + +Of course not, anything you find under `extras/` is optional and only provided as a easier way to get `plexupdate.sh` up and running quickly. + ## What email and password are you talking about The email and password for http://plex.tv @@ -172,3 +176,7 @@ If you use certain characters (such as `$`) in your password, bash will interpre i.e. `PASS="MyP4$$w0rD"` will not work, but changing to it to `PASS='MyP4$$w0rD'` will If it's still not working, run `plexupdate.sh` with `-v` which prints out the email and password used to login which might help you understand what the problem is. + +# Not finding what you're looking for? + +See https://github.com/mrworf/plexupdate/wiki for more information diff --git a/extras/cronwrapper b/extras/cronwrapper index a7ba31b..40f1c65 100755 --- a/extras/cronwrapper +++ b/extras/cronwrapper @@ -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 diff --git a/plexupdate.sh b/plexupdate.sh index 6473c8d..6895e2d 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -24,7 +24,6 @@ # 2 if file already downloaded # 3 if page layout has changed. # 4 if download fails -# 5 if version already installed # 6 if update was deferred due to usage # # All other return values not documented. @@ -563,7 +562,7 @@ fi if [[ $FILENAME == *$INSTALLED_VERSION* ]] && [ "${FORCE}" != "yes" -a "${FORCEALL}" != "yes" ] && [ ! -z "${INSTALLED_VERSION}" ]; then info "Your OS reports the latest version of Plex ($INSTALLED_VERSION) is already installed. Use -f to force download." - exit 5 + exit 0 fi if [ -f "${DOWNLOADDIR}/${FILENAME}" ]; then