Provide easy way to pass git owner/branch while testing

This commit is contained in:
Alex Malinovich 2017-02-19 20:20:31 -08:00
commit 301e6eddd4
2 changed files with 3 additions and 6 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
ORIGIN_REPO="https://github.com/mrworf/plexupdate" ORIGIN_REPO="https://github.com/${GIT_OWNER:-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"
@ -153,7 +153,7 @@ configure_plexupdate() {
fi fi
if yesno $default; then if yesno $default; then
PUBLIC=no PUBLIC=no
source get-plex-token source "${FULL_PATH}/get-plex-token"
getPlexToken getPlexToken
if [ -z "$TOKEN" ]; then if [ -z "$TOKEN" ]; then
abort "Failed to retrieve Plex token, please try again." abort "Failed to retrieve Plex token, please try again."

View file

@ -82,10 +82,7 @@ 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/mrworf/plexupdate/master/plexupdate.sh' UPSTREAM_GIT_URL="https://raw.githubusercontent.com/${GIT_OWNER:-mrworf}/plexupdate/${BRANCHNAME:-master}/plexupdate.sh"
#Branch to fetch updates from
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"