mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-21 05:43:20 -07:00
Provide easy way to pass git owner/branch while testing
This commit is contained in:
parent
5dd6305f56
commit
301e6eddd4
2 changed files with 3 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
ORIGIN_REPO="https://github.com/mrworf/plexupdate"
|
||||
ORIGIN_REPO="https://github.com/${GIT_OWNER:-mrworf}/plexupdate"
|
||||
FULL_PATH="/opt/plexupdate"
|
||||
CONFIGFILE="/etc/plexupdate.conf"
|
||||
CONFIGCRON="/etc/plexupdate.cron.conf"
|
||||
|
@ -153,7 +153,7 @@ configure_plexupdate() {
|
|||
fi
|
||||
if yesno $default; then
|
||||
PUBLIC=no
|
||||
source get-plex-token
|
||||
source "${FULL_PATH}/get-plex-token"
|
||||
getPlexToken
|
||||
if [ -z "$TOKEN" ]; then
|
||||
abort "Failed to retrieve Plex token, please try again."
|
||||
|
|
|
@ -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 for new version check
|
||||
UPSTREAM_GIT_URL='https://raw.githubusercontent.com/mrworf/plexupdate/master/plexupdate.sh'
|
||||
|
||||
#Branch to fetch updates from
|
||||
BRANCHNAME="master"
|
||||
UPSTREAM_GIT_URL="https://raw.githubusercontent.com/${GIT_OWNER:-mrworf}/plexupdate/${BRANCHNAME:-master}/plexupdate.sh"
|
||||
|
||||
#Files "owned" by plexupdate, for autoupdate
|
||||
PLEXUPDATE_FILES="plexupdate.sh extras/installer.sh extras/cronwrapper"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue