From: Cybertinus Date: Wed, 4 Dec 2024 10:49:04 +0000 (+0100) Subject: Update pdnsutil.bash_completion.d X-Git-Tag: auth-5.1.0-alpha0~2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b553da0d0329c9347bc2e6fc68bfca1b8dde33cf;p=thirdparty%2Fpdns.git Update pdnsutil.bash_completion.d - Removed dependency to the `have` command, which isn't available by default on Debian 12 (Bookworm) - Updated the completion list to have the new names 'primary' and 'secondary' instead of the old ones 'master' and 'slave' --- diff --git a/contrib/pdnsutil.bash_completion.d b/contrib/pdnsutil.bash_completion.d index 7395e78879..d5ef451cda 100644 --- a/contrib/pdnsutil.bash_completion.d +++ b/contrib/pdnsutil.bash_completion.d @@ -10,13 +10,15 @@ # pdnsutil YOUNAMEIT - completes to available zones, might be expensive with many (>10000) zones # -have pdnsutil && { +which pdnsutil >/dev/null 2>&1 +if [ "${?}" -eq 0 ] +then _pdnsutil_helper_local_() { local cur prev cmd - local _PDNSUTIL_ALL_CMDS="activate-tsig-key activate-zone-key add-record add-supermaster add-zone-key backend-cmd backend-lookup b2b-migrate bench-db change-slave-zone-master - check-zone check-all-zones clear-zone create-bind-db create-slave-zone create-zone deactivate-tsig-key deactivate-zone-key delete-rrset + local _PDNSUTIL_ALL_CMDS="activate-tsig-key activate-zone-key add-record add-autoprimary add-zone-key backend-cmd backend-lookup b2b-migrate bench-db change-secondary-zone-master + check-zone check-all-zones clear-zone create-bind-db create-secondary-zone create-zone deactivate-tsig-key deactivate-zone-key delete-rrset delete-tsig-key delete-zone disable-dnssec edit-zone export-zone-dnskey export-zone-key generate-tsig-key generate-zone-key get-meta hash-zone-record increase-serial import-tsig-key import-zone-key load-zone list-algorithms list-keys list-zone list-all-zones list-tsig-keys rectify-zone rectify-all-zones remove-zone-key replace-rrset secure-all-zones secure-zone set-kind set-nsec3 set-presigned @@ -42,4 +44,4 @@ have pdnsutil && { } complete -o default -F _pdnsutil_helper_local_ pdnsutil -} +fi