bind_add_dkim_zone_master.sh: some minor changes.

This commit is contained in:
Christoph 2019-01-05 01:08:13 +01:00
parent c1421521bb
commit bff98f5b3c

View File

@ -4,7 +4,7 @@
# - # -
# - Return (Exit) Codes: # - Return (Exit) Codes:
# - success: # - success:
# - 0: Master zone and zone file added # - 0: Master zone and zone file added / Access check successfully
# - 1: Master zone already exists zonefile created # - 1: Master zone already exists zonefile created
# - 2: Master zone and zone file already exists # - 2: Master zone and zone file already exists
# - error: # - error:
@ -69,7 +69,7 @@ usage() {
success: success:
0: Master zone and zone file added 0: Master zone and zone file added / Access check successfully
1: Master zone already exists zonefile created 1: Master zone already exists zonefile created
2: Master zone and zone file already exists 2: Master zone and zone file already exists
error: error:
@ -78,7 +78,7 @@ usage() {
20: Add Zone definition failed 20: Add Zone definition failed
21: Adding Zonefile failed 21: Adding Zonefile failed
22: Change owner for newly created zonefile failed 22: Change owner for newly created zonefile failed
23: Reload bind configuration 23: Reload bind configuration failed
99: Fatal error 99: Fatal error
\033[1mOptions\033[m \033[1mOptions\033[m
@ -276,14 +276,15 @@ fi
# - Read commandline parameter # - Read commandline parameter
# ---------- # ----------
while getopts bhk:t: opt ; do while getopts hk:qt: opt ; do
case $opt in case $opt in
q) verbose=true
;;
h) usage h) usage
;; ;;
k) TSIG_KEY_NAME="$OPTARG" k) TSIG_KEY_NAME="$OPTARG"
;; ;;
q) verbose=true
;;
t) ALLOW_TRANSFER_OPTION="$OPTARG" t) ALLOW_TRANSFER_OPTION="$OPTARG"
;; ;;
\?) usage \?) usage