Commit 45a9a0b1 authored by iSergio's avatar iSergio
Browse files

Fix

parent e7142e5e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -71,10 +71,10 @@ if [[ $DB_CLUSTER == false && "$CATEGORY" == "A" ]]; then
    PGPOOL_PRIMARY_HOST=$JBOSS_PRIMARY_HOST
    PGPOOL_STANDBY_HOST=$JBOSS_STANDBY_HOST

    if ! grep -Fq "$PGPOOL_PRIMARY_HOST app-primary"; then
    if ! grep -Fq "$PGPOOL_PRIMARY_HOST app-primary" /etc/hosts; then
        echo "$PGPOOL_PRIMARY_HOST app-primary" >> /etc/hosts
    fi
    if ! grep -Fq "$PGPOOL_STANDBY_HOST app-primary"; then
    if ! grep -Fq "$PGPOOL_STANDBY_HOST app-primary" /etc/hosts; then
        echo "$PGPOOL_STANDBY_HOST app-standby" >> /etc/hosts
    fi
fi