Commit 180902d1 authored by iSergio's avatar iSergio
Browse files

Fixes

parent 7a4ad0a9
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -10,11 +10,6 @@ fi
. ../contrib/functions.sh
. ../contrib/config

read -r -p "Configure PgPool-II. Continue ? [y/N]" choice
if ! [[ $choice =~ ^([yY][eE][sS]]|[yY])$ ]]; then
    exit 0
fi

TYPE=primary
VERBOSE=false
CATEGORY=a
@@ -33,7 +28,7 @@ usage="$(basename "$0") [-h] [-p] [-s] [-a|b] [-d] -- Script configure pgpool-II
    configure.sh -p -a -d -- PgPool will be configured for primary server Category A without PostgreSQL (db-primary)
"

while getopts ':psvhab' option; do
while getopts ':psvhabd' option; do
    case "$option" in
        p) TYPE=primary
            ;;
@@ -57,6 +52,11 @@ while getopts ':psvhab' option; do
   esac
done

read -r -p "Configure PgPool-II. Continue ? [y/N]" choice
if ! [[ $choice =~ ^([yY][eE][sS]]|[yY])$ ]]; then
    exit 0
fi

read -r -p "For which server will be configured PgPool-II(primary | standby) (Default: $TYPE):" _TYPE
if [[ ! -z $_TYPE ]]; then
    TYPE=$_TYPE