Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
chore(installer): minor changes to the installer script
Browse files Browse the repository at this point in the history
Ask for confirmation before downloading zanata.war
Download war from github instead of sourceforge
  • Loading branch information
Carlos A. Munoz committed Oct 29, 2015
1 parent e78f3e5 commit 66c9d2f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ println "====================================================="
def downloadWarFile = true
if( new File(WAR_FILE_LOC).exists() ) {
downloadWarFile = askYesNoQuestion("It seems Zanata is already installed. Do you wish to download it again? (y/N)")
} else {
downloadWarFile = askYesNoQuestion("Do you wish to download the Zanata package (zanata.war)? (y/N)")
}

def dbHost
Expand All @@ -48,7 +50,7 @@ def dbPassword

// Download the war file
if( downloadWarFile ) {
def fileUrl = "http://sourceforge.net/projects/zanata/files/webapp/zanata-war-${ZANATA_VERSION}.war/download"
def fileUrl = "https://github.com/zanata/zanata-server/releases/download/server-${ZANATA_VERSION}/zanata-war-${ZANATA_VERSION}.war"
println "Downloading $fileUrl"
println "This might take a few minutes."

Expand Down

0 comments on commit 66c9d2f

Please sign in to comment.