mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 21:33:16 -07:00
Update cronwrapper to work with installer script
This commit is contained in:
parent
2bb7b06e2c
commit
f255285588
1 changed files with 4 additions and 6 deletions
|
@ -17,15 +17,13 @@
|
||||||
# Set CONFIGURED to true once you've setup the previous three
|
# Set CONFIGURED to true once you've setup the previous three
|
||||||
# options.
|
# options.
|
||||||
#
|
#
|
||||||
CONFIGURED=false
|
|
||||||
|
|
||||||
CONF=
|
|
||||||
SCRIPT=/home/john.doe/plexupdate/plexupdate.sh
|
|
||||||
LOGGING=true
|
|
||||||
|
|
||||||
if ! $CONFIGURED; then
|
if [ ! -f /etc/plexpass.cron.conf ]; then
|
||||||
echo "ERROR: You have not configured this script" >&2
|
echo "ERROR: You have not configured /etc/plexpass.cron.conf" >&2
|
||||||
exit 255
|
exit 255
|
||||||
|
else
|
||||||
|
source /etc/plexpass.cron.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${SCRIPT}" -o ! -f "${SCRIPT}" ]; then
|
if [ -z "${SCRIPT}" -o ! -f "${SCRIPT}" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue