From 2b77c94101d6e456da746da12455d9b124bd3b98 Mon Sep 17 00:00:00 2001 From: Andrea Manzi Date: Mon, 7 Oct 2013 13:40:29 +0000 Subject: [PATCH] git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/distributions/smartgears-distribution@82560 82a268e6-3cf1-43bd-a215-b396298e98cf --- distro/contents/scripts/download | 6 +++--- distro/standalone.xml | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/distro/contents/scripts/download b/distro/contents/scripts/download index 2a37d4c..80d7ae2 100644 --- a/distro/contents/scripts/download +++ b/distro/contents/scripts/download @@ -1,4 +1,4 @@ - +nexusurl=maven.research-infrastructures.eu/nexus group=org.gcube.distribution artifact=smartgears-distribution repo=gcube-releases @@ -36,7 +36,7 @@ version_regexp=".*\(.*\).*" if [ -z "$version" ]; then - version=`curl -silent -L "maven.research-infrastructures.eu/nexus/service/local/artifact/maven/resolve?r=$repo&g=$group&a=$artifact&v=LATEST&e=tar.gz" \ + version=`curl -silent -L $nexusurl/service/local/artifact/maven/resolve?r=$repo&g=$group&a=$artifact&v=LATEST&e=tar.gz" \ | grep "$version_regexp" | sed "s|$version_regexp|\1|"` #(first extract matching line, then extract matching group) if [ -z "$version" ]; then @@ -51,7 +51,7 @@ fi echo -e "\ndownloading smartgears-distribution-$version.tar.gz...\c" -http_code=`curl -s -o "smartgears-distribution-$version.tar.gz" -w "%{http_code}" -L "maven.research-infrastructures.eu/nexus/service/local/artifact/maven/redirect?r=$repo&g=$group&a=$artifact&v=$version&e=tar.gz"` +http_code=`curl -s -o "smartgears-distribution-$version.tar.gz" -w "%{http_code}" -L "$nexusurl/service/local/artifact/maven/redirect?r=$repo&g=$group&a=$artifact&v=$version&e=tar.gz"` if [ ! "$http_code" = "200" ]; then echo -e "\n\nERROR: cannot download version $version from $repo." >&2 diff --git a/distro/standalone.xml b/distro/standalone.xml index f5a86f6..d04069c 100644 --- a/distro/standalone.xml +++ b/distro/standalone.xml @@ -14,6 +14,8 @@ true download + clean-app-state + clean-container-state 755 true