summaryrefslogtreecommitdiffstats
path: root/roles/openshift_examples/examples-sync.sh
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-08-03 12:04:14 -0400
committerScott Dodson <sdodson@redhat.com>2017-08-03 13:10:48 -0400
commitc48c824a018ca4113afbcc331fc794e9ed57fdbd (patch)
tree6511b3e8ca568b50b6d30677cc4b1b3c52a2b834 /roles/openshift_examples/examples-sync.sh
parent553a9ce216e1fcca3fe759e9228704db773ad1b0 (diff)
downloadopenshift-c48c824a018ca4113afbcc331fc794e9ed57fdbd.tar.gz
openshift-c48c824a018ca4113afbcc331fc794e9ed57fdbd.tar.bz2
openshift-c48c824a018ca4113afbcc331fc794e9ed57fdbd.tar.xz
openshift-c48c824a018ca4113afbcc331fc794e9ed57fdbd.zip
Add v3.7 content
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