From a4ab0c3d26625d55d9c09791f7474341ae30340c Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Wed, 7 Dec 2016 05:54:40 -0800 Subject: [PATCH] setup/index.txt: Use new URLs --- setup/index.txt | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/setup/index.txt b/setup/index.txt index d751532..406361e 100755 --- a/setup/index.txt +++ b/setup/index.txt @@ -18,18 +18,6 @@ else a2sDevel= fi -# Ensure URL we'll use ends in a / -case "$A2SERVER_SCRIPT_URL" in - */) scriptURL="$A2SERVER_SCRIPT_URL" ;; - *) scriptURL="${A2SERVER_SCRIPT_URL:-https://raw.githubusercontent.com/RasppleII/a2server/release}/" ;; -esac -case "$A2SERVER_BINARY_URL" in - */) binaryURL="$A2SERVER_BINARY_URL" ;; - *) binaryURL="${A2SERVER_BINARY_URL:-http://ivanx.com/a2server/files}/" ;; -esac -useExternalURL=1 -[[ $A2SERVER_NO_EXTERNAL ]] && useExternalURL= - isRpi= [[ -f /usr/bin/raspi-config ]] && isRpi=1 @@ -111,11 +99,6 @@ function a2sCmpInstalled() { return 1 } -echo -[[ $scriptURL != *"ivanx.com"* && $scriptURL != *"raw.githubusercontent.com/RasppleII/a2server"* ]] && echo "Using script URL: $scriptURL" -[[ $binaryURL != *"ivanx.com"* ]] && echo "Using binary URL: $binaryURL" -[[ ! $useExternalURL ]] && echo -e "Not using external URLs. Downloads must be available from:\n ${binaryURL}external/appleii/\n ${binaryURL}external/source/\n (See the A2SERVER developer page for more information.)" - skipRepoUpdate= autoAnswerYes= installAll= @@ -325,7 +308,7 @@ if (( $doSetup )); then a2sScriptDir="/tmp/a2server-install/scripts" mkdir -p "$a2sScriptDir" for _script in $a2sSubScripts; do - wget -q -O "$a2sScriptDir/$_script" "${scriptURL}scripts/$_script" + wget -q -O "$a2sScriptDir/$_script" "${a2sScriptURL}/scripts/$_script" chmod ugo+x "$a2sScriptDir/$_script" done