更新 scripts/containerd.sh

123
This commit is contained in:
joy 2025-10-31 09:20:04 +08:00
parent ff204b1d10
commit ec87f5d80a
1 changed files with 3 additions and 2 deletions

View File

@ -89,8 +89,9 @@ pre_check() {
for tool in "${required_tools[@]}"; do for tool in "${required_tools[@]}"; do
if ! command -v "$tool" &> /dev/null; then if ! command -v "$tool" &> /dev/null; then
log "INFO" "安装缺失工具:$tool" log "INFO" "安装缺失工具:$tool"
apt-get update -qq >/dev/null apt-get update
apt-get install -qq -y "$tool" >/dev/null #apt-get install -qq -y "$tool" >/dev/null
apt-get install -y "$tool"
fi fi
done done
log "INFO" "前置检查通过" log "INFO" "前置检查通过"