diff --git a/ra/saphana-common-lib b/ra/saphana-common-lib index fcd1cb02..2b533de3 100755 --- a/ra/saphana-common-lib +++ b/ra/saphana-common-lib @@ -492,9 +492,9 @@ function HANA_CALL() { output=$(timeout --foreground -s 9 "$timeOut" su - "${sid}adm" -c "($pre_script; timeout -s 9 $timeOut $cmd > $cmd_out_log) >& $cmd_err_log" 2>"$su_err_log"); rc="$?" ;; esac - if [[ -f "$cmd_out_log" ]]; then output=$(<$cmd_out_log); rm -f "$cmd_out_log"; fi - if [[ -f "$su_err_log" ]]; then suErr=$(<$su_err_log); rm -f "$su_err_log"; else suErr='NA'; fi - if [[ -f "$cmd_err_log" ]]; then cmdErr=$(<$cmd_err_log); rm -f "$cmd_err_log"; else cmdErr='NA'; fi + if [[ -f "$cmd_out_log" ]]; then output=$(<"$cmd_out_log"); rm -f "$cmd_out_log"; fi + if [[ -f "$su_err_log" ]]; then suErr=$(<"$su_err_log"); rm -f "$su_err_log"; else suErr='NA'; fi + if [[ -f "$cmd_err_log" ]]; then cmdErr=$(<"$cmd_err_log"); rm -f "$cmd_err_log"; else cmdErr='NA'; fi super_ocf_log debug "DBG: RA ==== action HANA_CALL (cmd is '$cmd', rc is '$rc', stderr from su is '$suErr', stderr from cmd is '$cmdErr') ====" # on rc=1 - retry to improve the behavior in AD environments # fh 20230127 deactivate this part. rc=1 could also be the valid rc of the called command