Skip to content

Commit

Permalink
CE: Ошибка нескольких сервисов RAS (fix #124)
Browse files Browse the repository at this point in the history
  • Loading branch information
slothfk committed Aug 21, 2023
1 parent 69ed4f4 commit cc2ed41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/1c_license_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ function check_cluster_process {

RAC_PARAM=$(echo "${1}" | sed 's/rmngr/manager/; s/rphost/process/')
PROCESS_UUID=$(timeout -s HUP "${RAS_TIMEOUT}" rac "${RAC_PARAM}" list --cluster "${2}" ${RAS_AUTH} \
"$(awk -F# -v cluster="${2}" '$0 ~ cluster { print $1 }' "${CLSTR_CACHE}_"?("${RAS_PORTS//,/|}"))" 2>/dev/null |
"$( awk -F# -v cluster="${2}" '$0 ~ cluster { print $1 }' "${CLSTR_CACHE}_"?(${RAS_PORTS//,/|}) )" 2>/dev/null |
awk -v FS=" +: *" -v filter="${RAC_PARAM}" '( $0 ~ "^("filter"|host|)( |$)" ) { print $2}' |
awk -v RS='' -v OFS=':' '$1=$1' | awk -F":" -v hostname="${HOSTNAME}" '( $0 ~ ":"hostname ) { print $1 }')
awk -v RS='' -v OFS=':' '$1=$1' | awk -F":" -v hostname="${HOSTNAME,,}" '( tolower($0) ~ ":"hostname ) { print $1 }')
if [[ -z ${PROCESS_UUID} ]]; then
echo 0
else
Expand Down

0 comments on commit cc2ed41

Please sign in to comment.