Update cronwrapper to work with installer script

This commit is contained in:
Alex Malinovich 2016-11-19 19:29:27 -08:00
commit f255285588

View file

@ -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