From b8671047e58e1a8cf2dc7779cb1b091182e0cfbe Mon Sep 17 00:00:00 2001 From: Henric Andersson Date: Sun, 20 Nov 2016 19:02:33 -0800 Subject: [PATCH] Revert "Give existing users explaination as to why plexupdate.sh failed" This reverts commit 47a294a4ad15207e4c85bfbbd87e2a955f926c06. --- plexupdate.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/plexupdate.sh b/plexupdate.sh index ab08b92..ff45be0 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -264,15 +264,8 @@ if ! hash wget 2>/dev/null; then fi # If a config file was specified, or if /etc/plexupdate.conf exists, we'll use it. Otherwise, just skip it. -if [ -z "${CONFIGFILE}" ]; then - if [ -f "/etc/plexupdate.conf" ]; then - CONFIGFILE=/etc/plexupdate.conf - else - error "Due to recent changes, config file must be specified or placed in /etc/plexupdate.conf" - exit 1 - fi -fi -source "${CONFIGFILE}" 2>/dev/null + +source "${CONFIGFILE:-"/etc/plexupdate.conf"}" 2>/dev/null # DO NOT ALLOW VERBOSE FROM CONFIGURATION FILE! if [ "${VERBOSE_CL}" = "yes" ]; then