mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 15:37:43 +08:00
core: 修复 nslookup/dig 安装失败
This commit is contained in:
@ -463,8 +463,12 @@ install_pkg() {
|
|||||||
pkg="bind-tools"
|
pkg="bind-tools"
|
||||||
elif is_in_arch; then
|
elif is_in_arch; then
|
||||||
pkg="bind"
|
pkg="bind"
|
||||||
|
elif command -v yum || command -v dnf; then
|
||||||
|
pkg="bind-utils"
|
||||||
|
elif command -v apt; then
|
||||||
|
pkg="bind9-dnsutils"
|
||||||
else
|
else
|
||||||
pkg="bind*-*utils"
|
error "Can't install nslookup / dig"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*) pkg=$cmd ;;
|
*) pkg=$cmd ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user