diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2020-05-28 08:26:47 -0400 |
---|---|---|
committer | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2020-05-28 08:27:55 -0400 |
commit | eaf126f4b06a842977c1932ce699c4d76421a4b2 (patch) | |
tree | 0692f32c8fd5509dc2dfda011e92e2f9053d3d8b /extras/ganesha/scripts | |
parent | 32519525108a2ac6bcc64ad931dc8048d33d64de (diff) |
common-ha: ganesha-ha.sh bad test for {rhel,centos} for pcs options
bash [[ ... =~ ... ]] built-in returns _0_ when the regex matches,
not 1, thus the sense of the test is backwards and never correctly
detects rhel or centos.
Change-Id: Ic9e60aae4ea38aff8f13979080995e60621a68fe
Fixes: #1269
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'extras/ganesha/scripts')
-rw-r--r-- | extras/ganesha/scripts/ganesha-ha.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/ganesha/scripts/ganesha-ha.sh b/extras/ganesha/scripts/ganesha-ha.sh index 4ecf91b65e6..a6814b17935 100644 --- a/extras/ganesha/scripts/ganesha-ha.sh +++ b/extras/ganesha/scripts/ganesha-ha.sh @@ -1054,7 +1054,7 @@ main() # Fedora 29+ and rhel/centos 8 has PCS-0.10.x # default is pcs-0.10.x options but check for # rhel/centos 7 (pcs-0.9.x) and adjust accordingly - if [[ ${ID} =~ {rhel,centos} ]]; then + if [[ ! ${ID} =~ {rhel,centos} ]]; then if [[ ${VERSION_ID} == 7.* ]]; then PCS9OR10_PCS_CNAME_OPTION="--name" PCS9OR10_PCS_CLONE_OPTION="--clone" |