aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lucas <jflos@sonoris.net>2022-05-03 14:01:36 +0000
committerGerrit Code Review <gerrit@onap.org>2022-05-03 14:01:36 +0000
commit6354ac840245587ae6a587f0978952d37872da41 (patch)
tree7a792cc54f46e825dfdcafd450193f2954e3b43a
parent9a62578638e21ecc0c12be240af6365b3e84a416 (diff)
parentbf7365e1b90e5907ff5713f88988f7c42c8aad66 (diff)
Merge "[COMMON] Fix 'trap RETURN' and $BASHPID bashisms"
-rwxr-xr-xkubernetes/sdnc/components/sdnc-prom/resources/bin/ensureSdncActive.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/kubernetes/sdnc/components/sdnc-prom/resources/bin/ensureSdncActive.sh b/kubernetes/sdnc/components/sdnc-prom/resources/bin/ensureSdncActive.sh
index 099103ca79..d92a1049e3 100755
--- a/kubernetes/sdnc/components/sdnc-prom/resources/bin/ensureSdncActive.sh
+++ b/kubernetes/sdnc/components/sdnc-prom/resources/bin/ensureSdncActive.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
{{/*
# Copyright © 2018 Amdocs
@@ -33,8 +33,8 @@ failover(){
debugLog "Currently running sdnc and dns failover"
return
fi
- trap "rm -f ${lockFile}" INT TERM RETURN
- echo $BASHPID > ${lockFile}
+ trap "rm -f ${lockFile}" INT TERM EXIT
+ echo $$ > ${lockFile}
# perform takeover
debugLog "Started executing sdnc.failover for $SITE_NAME"