mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-19 12:59:40 -07:00
Removed fixme's and set the correct paths
This commit is contained in:
parent
66787bc12c
commit
58abfc6ebf
2 changed files with 5 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ORIGIN_REPO="https://github.com/demonbane/plexupdate" #FIXME
|
ORIGIN_REPO="https://github.com/mrworf/plexupdate"
|
||||||
FULL_PATH="/opt/plexupdate"
|
FULL_PATH="/opt/plexupdate"
|
||||||
CONFIGFILE="/etc/plexupdate.conf"
|
CONFIGFILE="/etc/plexupdate.conf"
|
||||||
CONFIGCRON="/etc/plexupdate.cron.conf"
|
CONFIGCRON="/etc/plexupdate.cron.conf"
|
||||||
|
@ -130,10 +130,6 @@ install_plexupdate() {
|
||||||
echo -n "Installing plexupdate into '$FULL_PATH'... "
|
echo -n "Installing plexupdate into '$FULL_PATH'... "
|
||||||
git clone "$ORIGIN_REPO" "$FULL_PATH" &> /dev/null || abort "install failed, cannot continue"
|
git clone "$ORIGIN_REPO" "$FULL_PATH" &> /dev/null || abort "install failed, cannot continue"
|
||||||
echo "done"
|
echo "done"
|
||||||
# FIXME These 3 lines are just to allow us to test easily while we're still using this branch. Remember to take this out before merging to master.
|
|
||||||
cd "$FULL_PATH"
|
|
||||||
git checkout reworklog > /dev/null
|
|
||||||
cd - &> /dev/null
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -79,10 +79,10 @@ URL_DOWNLOAD='https://plex.tv/api/downloads/1.json?channel=plexpass'
|
||||||
URL_DOWNLOAD_PUBLIC='https://plex.tv/api/downloads/1.json'
|
URL_DOWNLOAD_PUBLIC='https://plex.tv/api/downloads/1.json'
|
||||||
|
|
||||||
#URL for new version check
|
#URL for new version check
|
||||||
UPSTREAM_GIT_URL='https://raw.githubusercontent.com/demonbane/plexupdate/reworklog/plexupdate.sh' #FIXME
|
UPSTREAM_GIT_URL='https://raw.githubusercontent.com/mrworf/plexupdate/master/plexupdate.sh'
|
||||||
|
|
||||||
#Branch to fetch updates from
|
#Branch to fetch updates from
|
||||||
BRANCHNAME="reworklog" #FIXME
|
BRANCHNAME="master"
|
||||||
|
|
||||||
#Files "owned" by plexupdate, for autoupdate
|
#Files "owned" by plexupdate, for autoupdate
|
||||||
PLEXUPDATE_FILES="plexupdate.sh extras/installer.sh extras/cronwrapper"
|
PLEXUPDATE_FILES="plexupdate.sh extras/installer.sh extras/cronwrapper"
|
||||||
|
@ -227,7 +227,7 @@ for i in `seq 1 $#`; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
#FIXME: Temporary error checking to notify people of change from .plexupdate to plexupdate.conf
|
#DEPRECATED SUPPORT: Temporary error checking to notify people of change from .plexupdate to plexupdate.conf
|
||||||
# We have to double-check that both files exist before trying to stat them. This is going away soon.
|
# We have to double-check that both files exist before trying to stat them. This is going away soon.
|
||||||
if [ -z "${CONFIGFILE}" -a -f ~/.plexupdate -a ! -f /etc/plexupdate.conf ] || \
|
if [ -z "${CONFIGFILE}" -a -f ~/.plexupdate -a ! -f /etc/plexupdate.conf ] || \
|
||||||
([ -f "${CONFIGFILE}" -a -f ~/.plexupdate ] && [ `stat -Lc %i "${CONFIGFILE}"` == `stat -Lc %i ~/.plexupdate` ]); then
|
([ -f "${CONFIGFILE}" -a -f ~/.plexupdate ] && [ `stat -Lc %i "${CONFIGFILE}"` == `stat -Lc %i ~/.plexupdate` ]); then
|
||||||
|
@ -238,7 +238,7 @@ if [ -z "${CONFIGFILE}" -a -f ~/.plexupdate -a ! -f /etc/plexupdate.conf ] || \
|
||||||
fi
|
fi
|
||||||
CONFIGFILE=~/.plexupdate
|
CONFIGFILE=~/.plexupdate
|
||||||
fi
|
fi
|
||||||
#FIXME
|
#DEPRECATED END
|
||||||
|
|
||||||
# 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.
|
||||||
source "${CONFIGFILE:-"/etc/plexupdate.conf"}" 2>/dev/null
|
source "${CONFIGFILE:-"/etc/plexupdate.conf"}" 2>/dev/null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue