summaryrefslogtreecommitdiffstats
path: root/roles/openshift_examples/examples-sync.sh
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2015-11-17 16:45:24 -0500
committerScott Dodson <sdodson@redhat.com>2015-11-18 15:34:32 -0500
commitcef52c3a1aabb10be8c1d4b81f37464982832105 (patch)
tree82849868e3975385e118aeb9099fb362f37ba236 /roles/openshift_examples/examples-sync.sh
parent544633e687e4d51c169eca435f7f356aad78bacf (diff)
downloadopenshift-cef52c3a1aabb10be8c1d4b81f37464982832105.tar.gz
openshift-cef52c3a1aabb10be8c1d4b81f37464982832105.tar.bz2
openshift-cef52c3a1aabb10be8c1d4b81f37464982832105.tar.xz
openshift-cef52c3a1aabb10be8c1d4b81f37464982832105.zip
Install version dependent image streams for v1.0 and v1.1
Diffstat (limited to 'roles/openshift_examples/examples-sync.sh')
-rwxr-xr-xroles/openshift_examples/examples-sync.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/roles/openshift_examples/examples-sync.sh b/roles/openshift_examples/examples-sync.sh
index a261a6ddd..090fb9042 100755
--- a/roles/openshift_examples/examples-sync.sh
+++ b/roles/openshift_examples/examples-sync.sh
@@ -6,9 +6,10 @@
# This script should be run from openshift-ansible/roles/openshift_examples
XPAAS_VERSION=ose-v1.1.0
-EXAMPLES_BASE=$(pwd)/files/examples
-find files/examples -name '*.json' -delete
-find files/examples -name '*.yaml' -delete
+ORIGIN_VERSION=v1.1
+EXAMPLES_BASE=$(pwd)/files/examples/${ORIGIN_VERSION}
+find ${EXAMPLES_BASE} -name '*.json' -delete
+find ${EXAMPLES_BASE} -name '*.yaml' -delete
TEMP=`mktemp -d`
pushd $TEMP