diff options
author | Guillaume Lambert <guillaume.lambert@orange.com> | 2021-03-08 21:38:31 +0100 |
---|---|---|
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2021-06-24 13:46:51 +0000 |
commit | d9017efa3a08ee06d54654fde87384fc4819b03b (patch) | |
tree | 1f3ce8efbe3cb485b8122b607703edc2bed00de5 /kubernetes/sdnc/components/sdnc-prom | |
parent | fe651c1283fbdd67bd4482727f5b7298d55df9d8 (diff) |
[COMMON] Fix some bashisms
pointed out by checkbashisms:
- variable name HOSTNAME
- source instead of .
- sleep with suffix
- string increments
And migrate a few shebangs to /bin/sh
Issue-ID: OOM-2643
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I653c14454a3232b5a349ca1564ece53ddc94289d
Diffstat (limited to 'kubernetes/sdnc/components/sdnc-prom')
-rwxr-xr-x | kubernetes/sdnc/components/sdnc-prom/resources/bin/ensureSdncActive.sh | 2 | ||||
-rwxr-xr-x | kubernetes/sdnc/components/sdnc-prom/resources/bin/ensureSdncStandby.sh | 4 |
2 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 feb6662196..099103ca79 100755 --- a/kubernetes/sdnc/components/sdnc-prom/resources/bin/ensureSdncActive.sh +++ b/kubernetes/sdnc/components/sdnc-prom/resources/bin/ensureSdncActive.sh @@ -1,6 +1,6 @@ #!/bin/bash -{{/* +{{/* # Copyright © 2018 Amdocs # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/kubernetes/sdnc/components/sdnc-prom/resources/bin/ensureSdncStandby.sh b/kubernetes/sdnc/components/sdnc-prom/resources/bin/ensureSdncStandby.sh index 94858339e7..05a17017ab 100755 --- a/kubernetes/sdnc/components/sdnc-prom/resources/bin/ensureSdncStandby.sh +++ b/kubernetes/sdnc/components/sdnc-prom/resources/bin/ensureSdncStandby.sh @@ -1,6 +1,6 @@ -#!/bin/bash -{{/* +#!/bin/sh +{{/* # Copyright © 2018 Amdocs # # Licensed under the Apache License, Version 2.0 (the "License"); |