Move the set of the UPSTREAM_GET_URL as it relies on variabls on CONFIGFILE

This commit is contained in:
Adam Kingsley 2018-03-17 22:22:38 +01:00
parent 64ac249009
commit eed35bf3d7
2 changed files with 3 additions and 3 deletions

View file

@ -18,9 +18,6 @@ REDHAT_INSTALL="dnf -y install"
DEBIAN_INSTALL="dpkg -i"
DISTRO_INSTALL=""
#URL for new version check
UPSTREAM_GIT_URL="https://raw.githubusercontent.com/${GIT_OWNER:-mrworf}/plexupdate/${BRANCHNAME:-master}"
#Files "owned" by plexupdate, for autoupdate
PLEXUPDATE_FILES="plexupdate.sh plexupdate-core extras/installer.sh extras/cronwrapper"

View file

@ -319,6 +319,9 @@ else
fi
fi
#URL for new version check
UPSTREAM_GIT_URL="https://raw.githubusercontent.com/${GIT_OWNER:-mrworf}/plexupdate/${BRANCHNAME:-master}"
if [ "${CHECKUPDATE}" = "yes" -a "${AUTOUPDATE}" = "no" ]; then
pushd "${SCRIPT_PATH}" > /dev/null
for filename in $PLEXUPDATE_FILES; do