summaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorguillaume.lambert <guillaume.lambert@orange.com>2021-12-09 20:14:28 +0100
committerGuillaume Lambert <guillaume.lambert@orange.com>2022-04-28 15:05:44 +0000
commitbf7365e1b90e5907ff5713f88988f7c42c8aad66 (patch)
tree9ad326081ea7b90d56dbf53c77b9d3c2da5368a9 /kubernetes
parent618cfffd44e5a9d187e6a89586b00fb0737f81a7 (diff)
[COMMON] Fix 'trap RETURN' and $BASHPID bashisms
pointed out by checkbashisms. Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com> Change-Id: I19e7f50d5a98087d59cbe99778bee1a5f7a3a27c
Diffstat (limited to 'kubernetes')
-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"