diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2021-06-18 08:00:23 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-06-18 08:00:23 +0000 |
commit | 6af2236f179efe1f3b67d7646153ac5f03d86546 (patch) | |
tree | 494f005f800f03c7c9c69db236367f337ee1bf78 /kubernetes/contrib/dns-server-for-vhost-ingress-testing/deploy_dns.sh | |
parent | f0e88b345f6c6dd6d5733d74016fc44027ac407f (diff) | |
parent | 134188daef48f9c1fadad5b26b4fb1e6417e4304 (diff) |
Merge "[COMMON] Fix $BASH_SOURCE and pushd/popd bashisms"
Diffstat (limited to 'kubernetes/contrib/dns-server-for-vhost-ingress-testing/deploy_dns.sh')
-rwxr-xr-x | kubernetes/contrib/dns-server-for-vhost-ingress-testing/deploy_dns.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kubernetes/contrib/dns-server-for-vhost-ingress-testing/deploy_dns.sh b/kubernetes/contrib/dns-server-for-vhost-ingress-testing/deploy_dns.sh index 67bbfd6c6f..163877deca 100755 --- a/kubernetes/contrib/dns-server-for-vhost-ingress-testing/deploy_dns.sh +++ b/kubernetes/contrib/dns-server-for-vhost-ingress-testing/deploy_dns.sh @@ -1,5 +1,5 @@ #!/bin/bash -e -# + # Copyright 2020 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -70,7 +70,8 @@ ingress_controller_ip() { deploy() { local ingress_ip=$(ingress_controller_ip) - pushd "$SPATH/bind9dns" > /dev/null + initdir = $(pwd) + cd $SPATH/bind9dns if [ $# -eq 0 ]; then local cl_domain="simpledemo.onap.org" else @@ -82,7 +83,7 @@ deploy() { shift fi helm install . --set dnsconf.wildcard="$cl_domain=$ingress_ip" $@ - popd > /dev/null + cd $initdir target_machine_notice_info } |