summaryrefslogtreecommitdiffstats
path: root/roles/openshift_examples/examples-sync.sh
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-08-03 15:08:27 -0400
committerGitHub <noreply@github.com>2017-08-03 15:08:27 -0400
commit05a9c91735cc95457411dbb19951341e5418df18 (patch)
treef9c9bb750370732e83daedb36e44aa199aaceccb /roles/openshift_examples/examples-sync.sh
parent1765ce2bb6ab28a14c60dd5c268ec97ed788a1c1 (diff)
parent1fdf6048f45bf64fbdd4a74ebe40ec45ff06d016 (diff)
downloadopenshift-05a9c91735cc95457411dbb19951341e5418df18.tar.gz
openshift-05a9c91735cc95457411dbb19951341e5418df18.tar.bz2
openshift-05a9c91735cc95457411dbb19951341e5418df18.tar.xz
openshift-05a9c91735cc95457411dbb19951341e5418df18.zip
Merge pull request #4988 from stevekuznetsov/skuznets/tolerate-3.7
Update version checks to tolerate 3.7
Diffstat (limited to 'roles/openshift_examples/examples-sync.sh')
-rwxr-xr-xroles/openshift_examples/examples-sync.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/openshift_examples/examples-sync.sh b/roles/openshift_examples/examples-sync.sh
index e8d687877..3a8ce55c4 100755
--- a/roles/openshift_examples/examples-sync.sh
+++ b/roles/openshift_examples/examples-sync.sh
@@ -6,13 +6,16 @@
# This script should be run from openshift-ansible/roles/openshift_examples
XPAAS_VERSION=ose-v1.4.1
-ORIGIN_VERSION=${1:-v3.6}
+ORIGIN_VERSION=${1:-v3.7}
RHAMP_TAG=2.0.0.GA
EXAMPLES_BASE=$(pwd)/files/examples/${ORIGIN_VERSION}
find ${EXAMPLES_BASE} -name '*.json' -delete
TEMP=`mktemp -d`
pushd $TEMP
+if [ ! -d "${EXAMPLES_BASE}" ]; then
+ mkdir -p ${EXAMPLES_BASE}
+fi
wget https://github.com/openshift/origin/archive/master.zip -O origin-master.zip
wget https://github.com/jboss-fuse/application-templates/archive/GA.zip -O fis-GA.zip
wget https://github.com/jboss-openshift/application-templates/archive/${XPAAS_VERSION}.zip -O application-templates-master.zip