From f25528558877e61f3b397833c146f189f23025a4 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Sat, 19 Nov 2016 19:29:27 -0800 Subject: [PATCH] Update cronwrapper to work with installer script --- extras/cronwrapper | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/extras/cronwrapper b/extras/cronwrapper index 67a5abf..0bc6c32 100755 --- a/extras/cronwrapper +++ b/extras/cronwrapper @@ -17,15 +17,13 @@ # Set CONFIGURED to true once you've setup the previous three # options. # -CONFIGURED=false -CONF= -SCRIPT=/home/john.doe/plexupdate/plexupdate.sh -LOGGING=true -if ! $CONFIGURED; then - echo "ERROR: You have not configured this script" >&2 +if [ ! -f /etc/plexpass.cron.conf ]; then + echo "ERROR: You have not configured /etc/plexpass.cron.conf" >&2 exit 255 +else + source /etc/plexpass.cron.conf fi if [ -z "${SCRIPT}" -o ! -f "${SCRIPT}" ]; then