From 57bcb793100ddc59d0fa7c999690c34ee604ab1a Mon Sep 17 00:00:00 2001 From: Taikuh Date: Mon, 9 Mar 2020 20:11:11 +0800 Subject: [PATCH] download_latest_files follows quick installer --- installers/common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installers/common.sh b/installers/common.sh index 576c0f07..c4b5e74e 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -8,6 +8,7 @@ raspap_dir="/etc/raspap" raspap_user="www-data" webroot_dir="/var/www/html" version=`sed 's/\..*//' /etc/debian_version` +git_source_url="https://github.com/$repo" # $repo from install.raspap.com # Determine Raspbian version, set default home location for lighttpd and # php package to install @@ -176,7 +177,7 @@ function download_latest_files() { fi install_log "Cloning latest files from github" - git clone --depth 1 https://github.com/billz/raspap-webgui /tmp/raspap-webgui || install_error "Unable to download files from github" + git clone --branch $branch --depth 1 $git_source_url /tmp/raspap-webgui || install_error "Unable to download files from github" sudo mv /tmp/raspap-webgui $webroot_dir || install_error "Unable to move raspap-webgui to web root" }