Commit ff170b1a authored by iSergio's avatar iSergio
Browse files

Category add

parent 244a827a
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -17,12 +17,16 @@ fi

TYPE=primary
VERBOSE=false
CATEGORY=a

usage="$(basename "$0") [-h] [-p] [-s] -- Script configure pgpool-II
usage="$(basename "$0") [-h] [-p] [-s] [-a|b|c]-- Script configure pgpool-II
 where:
     -h  show this help text and exit
     -p  configure pgpool as primary
     -s  configure pgpool as standby"
     -s  configure pgpool as standby
     -a  configure pgpool for category A
     -b  configure pgpool for category B
     -c  configure pgpool for category C"

while getopts ':psvh' option; do
    case "$option" in
@@ -32,6 +36,12 @@ while getopts ':psvh' option; do
            ;;
        v) VERBOSE=true
            ;;
        a) CATEGORY=a
            ;;
        b) CATEGORY=b
            ;;
        c) CATEGORY=c
            ;;
        h) echo "$usage"
            exit
            ;;