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