From 1a86e454e7be22b36039a4a4bac6a886f523e9d3 Mon Sep 17 00:00:00 2001 From: Lingxian Kong Date: Thu, 10 Dec 2020 15:18:10 +1300 Subject: [PATCH] Use 'bash' in the keepalived check script Use bash instead of sh to avoid the error "shopt: not found" Change-Id: Ib089affa229531cd72f6853105d74b446687ae86 Story: 2008437 Task: 41399 --- .../agent/api_server/templates/keepalived_check_script.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octavia/amphorae/backends/agent/api_server/templates/keepalived_check_script.conf.j2 b/octavia/amphorae/backends/agent/api_server/templates/keepalived_check_script.conf.j2 index e2c85c48af..50728cd56a 100644 --- a/octavia/amphorae/backends/agent/api_server/templates/keepalived_check_script.conf.j2 +++ b/octavia/amphorae/backends/agent/api_server/templates/keepalived_check_script.conf.j2 @@ -23,7 +23,7 @@ status=0 for file in {{ check_scripts_dir }}/* do echo "Running check script: " $file - sh $file + bash $file status=$(( $status + $? )) done exit $status