Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[COMMON] Fix & add to bashisms CI failover scripts
[oom.git]
/
kubernetes
/
sdnc
/
components
/
sdnc-prom
/
resources
/
bin
/
sdnc.failover
diff --git
a/kubernetes/sdnc/components/sdnc-prom/resources/bin/sdnc.failover
b/kubernetes/sdnc/components/sdnc-prom/resources/bin/sdnc.failover
index
d9133e8
..
1a74c1e
100755
(executable)
--- a/
kubernetes/sdnc/components/sdnc-prom/resources/bin/sdnc.failover
+++ b/
kubernetes/sdnc/components/sdnc-prom/resources/bin/sdnc.failover
@@
-1,4
+1,4
@@
-#!/bin/
ba
sh
+#!/bin/sh
{{/*
# Copyright © 2018 Amdocs
{{/*
# Copyright © 2018 Amdocs
@@
-30,7
+30,7
@@
fi
APP_BIN=/app/bin
debugLog(){
APP_BIN=/app/bin
debugLog(){
- if [ "$enableDebugLogging" =
=
true ]; then
+ if [ "$enableDebugLogging" = true ]; then
if [ $# -eq 0 ]; then
echo "" >> $LOGFILE
else
if [ $# -eq 0 ]; then
echo "" >> $LOGFILE
else
@@
-41,7
+41,7
@@
debugLog(){
EXC_SIMPLE_FAILOVER=`${APP_BIN}/switchVoting.sh`
EXC_SIMPLE_FAILOVER=`${APP_BIN}/switchVoting.sh`
-if [ "$EXC_SIMPLE_FAILOVER" =
=
"success" ]; then
+if [ "$EXC_SIMPLE_FAILOVER" = "success" ]; then
debugLog "Simple failover success. SDNC failover completed."
else
# Simple failover failed. Trying catastrophic failover ...
debugLog "Simple failover success. SDNC failover completed."
else
# Simple failover failed. Trying catastrophic failover ...