aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMunir Ahmad <munir.ahmad@bell.ca>2017-08-23 16:55:59 -0400
committerMunir Ahmad <munir.ahmad@bell.ca>2017-08-23 16:55:59 -0400
commit0803ca6618ba1f78c3d246288c3e727e7e3db6ea (patch)
tree956ab75d77f47af977ab48eea280f59d9c8b6fec
parent9e77b21fc896b5018af2bfb27053a3273bfae31c (diff)
Fixed the bug with sed now its env. agnostic
Issue-ID: OOM-170 Change-Id: Id57d46bc3b8d4faf1cc5ee002563cd35f790f67d Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>
-rwxr-xr-xkubernetes/oneclick/createAll.bash8
1 files changed, 4 insertions, 4 deletions
diff --git a/kubernetes/oneclick/createAll.bash b/kubernetes/oneclick/createAll.bash
index 82956b8e7b..7e2969760a 100755
--- a/kubernetes/oneclick/createAll.bash
+++ b/kubernetes/oneclick/createAll.bash
@@ -26,8 +26,8 @@ create_registry_key() {
}
create_service() {
- sed -i -- 's/nodePort: [0-9]\{2\}[02468]\{1\}/nodePort: '"$3"'/g' ../$2/all-services.yaml
- sed -i -- 's/nodePort: [0-9]\{2\}[13579]\{1\}/nodePort: '"$4"'/g' ../$2/all-services.yaml
+ sed -i-- 's/nodePort: [0-9]\{2\}[02468]\{1\}/nodePort: '"$3"'/g' ../$2/all-services.yaml
+ sed -i-- 's/nodePort: [0-9]\{2\}[13579]\{1\}/nodePort: '"$4"'/g' ../$2/all-services.yaml
kubectl --namespace $1-$2 create -f ../$2/all-services.yaml
mv ../$2/all-services.yaml-- ../$2/all-services.yaml
}
@@ -46,8 +46,8 @@ configure_app() {
done
if [ -e "$2/Chart.yaml" ]; then
- sed -i -- 's/nodePort: [0-9]\{2\}[02468]\{1\}/nodePort: '"$4"'/g' $3/all-services.yaml
- sed -i -- 's/nodePort: [0-9]\{2\}[13579]\{1\}/nodePort: '"$5"'/g' $3/all-services.yaml
+ sed -i-- 's/nodePort: [0-9]\{2\}[02468]\{1\}/nodePort: '"$4"'/g' $3/all-services.yaml
+ sed -i-- 's/nodePort: [0-9]\{2\}[13579]\{1\}/nodePort: '"$5"'/g' $3/all-services.yaml
sed -i "s/onap-/$1-/g" ../$2/values.yaml
fi