From eed35bf3d7424922e5796e0011fcee7193dd808a Mon Sep 17 00:00:00 2001 From: Adam Kingsley Date: Sat, 17 Mar 2018 22:22:38 +0100 Subject: [PATCH] Move the set of the UPSTREAM_GET_URL as it relies on variabls on CONFIGFILE --- plexupdate-core | 3 --- plexupdate.sh | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plexupdate-core b/plexupdate-core index 70310cc..71272e9 100755 --- a/plexupdate-core +++ b/plexupdate-core @@ -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" diff --git a/plexupdate.sh b/plexupdate.sh index b0a138d..018e081 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -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