-
Notifications
You must be signed in to change notification settings - Fork 821
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What is version of KubeKey has the issue?
4.0.2
What is your os environment?
kylin v10
KubeKey config file
A clear and concise description of what happend.
kk 在检测 conntrack 软件是否安装时,使用的命令错误
不应该是 rpm -q conntrack
应该是: rpm -q conntrack-tools
如截图:
源码部分:
BACKUP_FILE="/etc/yum.repos.d.kubekey.bak-$(date +%Y%m%d%H%M%S)"
PKGS="socat conntrack ipset ebtables chrony ipvsadm"
PKGS_TO_INSTALL=""
for pkg in $PKGS; do
if [ -n "$pkg" ]; then
rpm -q $pkg >/dev/null 2>&1 || PKGS_TO_INSTALL="$PKGS_TO_INSTALL $pkg"
fi
done
建议: 不知道可否改成 which 软件名字 的方法来检测是否安装依赖软件
Relevant log output
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working