mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 21:33:16 -07:00
Give existing users explaination as to why plexupdate.sh failed
We must make sure to tell existing users about the change in behavior. If they used ~/.plexupdate it will now properly warn them about the change and exit out.
This commit is contained in:
parent
7b0ed60d88
commit
02f34542e7
1 changed files with 9 additions and 2 deletions
|
@ -264,8 +264,15 @@ if ! hash wget 2>/dev/null; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If a config file was specified, or if /etc/plexupdate.conf exists, we'll use it. Otherwise, just skip it.
|
# If a config file was specified, or if /etc/plexupdate.conf exists, we'll use it. Otherwise, just skip it.
|
||||||
|
if [ -z "${CONFIGFILE}" ]; then
|
||||||
source "${CONFIGFILE:-"/etc/plexupdate.conf"}" 2>/dev/null
|
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
|
||||||
|
|
||||||
# DO NOT ALLOW VERBOSE FROM CONFIGURATION FILE!
|
# DO NOT ALLOW VERBOSE FROM CONFIGURATION FILE!
|
||||||
if [ "${VERBOSE_CL}" = "yes" ]; then
|
if [ "${VERBOSE_CL}" = "yes" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue