core: 修复 nslookup/dig 安装失败

This commit is contained in:
bin456789
2023-07-28 22:52:30 +08:00
parent 8398e1e4cf
commit 7e34a4c6bd

View File

@ -463,8 +463,12 @@ install_pkg() {
pkg="bind-tools"
elif is_in_arch; then
pkg="bind"
elif command -v yum || command -v dnf; then
pkg="bind-utils"
elif command -v apt; then
pkg="bind9-dnsutils"
else
pkg="bind*-*utils"
error "Can't install nslookup / dig"
fi
;;
*) pkg=$cmd ;;