diff --git a/bind_add_dkim_zone_master.sh b/bind_add_dkim_zone_master.sh index 39c055a..fc81386 100755 --- a/bind_add_dkim_zone_master.sh +++ b/bind_add_dkim_zone_master.sh @@ -4,7 +4,7 @@ # - # - Return (Exit) Codes: # - 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 # - 2: Master zone and zone file already exists # - error: @@ -69,7 +69,7 @@ usage() { 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 2: Master zone and zone file already exists error: @@ -78,7 +78,7 @@ usage() { 20: Add Zone definition failed 21: Adding Zonefile failed 22: Change owner for newly created zonefile failed - 23: Reload bind configuration + 23: Reload bind configuration failed 99: Fatal error \033[1mOptions\033[m @@ -276,14 +276,15 @@ fi # - Read commandline parameter # ---------- -while getopts bhk:t: opt ; do +while getopts hk:qt: opt ; do case $opt in - q) verbose=true - ;; + h) usage ;; k) TSIG_KEY_NAME="$OPTARG" ;; + q) verbose=true + ;; t) ALLOW_TRANSFER_OPTION="$OPTARG" ;; \?) usage