mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-19 21:03:19 -07:00
Warn users that .plexupdate is going away
This commit is contained in:
parent
040ba84619
commit
803ba15f61
1 changed files with 11 additions and 1 deletions
|
@ -263,8 +263,18 @@ if ! hash wget 2>/dev/null; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If a config file was specified, or if /etc/plexupdate.conf exists, we'll use it. Otherwise, just skip it.
|
#FIXME: Temporary error checking to notify people of change from .plexupdate to plexupdate.conf
|
||||||
|
if [ -z "${CONFIGFILE}" -a -f ~/.plexupdate -a ! -f /etc/plexupdate.conf ] || [ `stat -Lc %i "${CONFIGFILE}"` == `stat -Lc %i ~/.plexupdate` ]; then
|
||||||
|
warn ".plexupdate has been deprecated. You should move your configuration to /etc/plexupdate.conf"
|
||||||
|
if [ -t 1 ]; then
|
||||||
|
for i in `seq 1 5`; do echo -n .\ ; sleep 1; done
|
||||||
|
echo .
|
||||||
|
fi
|
||||||
|
CONFIGFILE=~/.plexupdate
|
||||||
|
fi
|
||||||
|
#FIXME
|
||||||
|
|
||||||
|
# If a config file was specified, or if /etc/plexupdate.conf exists, we'll use it. Otherwise, just skip it.
|
||||||
source "${CONFIGFILE:-"/etc/plexupdate.conf"}" 2>/dev/null
|
source "${CONFIGFILE:-"/etc/plexupdate.conf"}" 2>/dev/null
|
||||||
|
|
||||||
# DO NOT ALLOW VERBOSE FROM CONFIGURATION FILE!
|
# DO NOT ALLOW VERBOSE FROM CONFIGURATION FILE!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue