🔧 fix: Proxmox 버전 파싱 로직 수정
- pveversion 출력에서 올바른 필드()를 사용하도록 수정 - 9.x 버전 감지 정상 동작 확인 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
8748a8bf9a
commit
ca7408c3a5
@ -54,10 +54,10 @@ check_proxmox_version() {
|
|||||||
msg_error "Proxmox VE가 설치되어 있지 않습니다."
|
msg_error "Proxmox VE가 설치되어 있지 않습니다."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 버전 정보 추출 (더 안전한 방식)
|
# 버전 정보 추출 (수정된 방식)
|
||||||
local version_info
|
local version_info
|
||||||
if command -v pveversion > /dev/null 2>&1; then
|
if command -v pveversion > /dev/null 2>&1; then
|
||||||
version_info=$(pveversion 2>/dev/null | head -n1 | awk '{print $2}' 2>/dev/null || echo "unknown")
|
version_info=$(pveversion 2>/dev/null | head -n1 | awk '{print $1}' | cut -d'/' -f2 2>/dev/null || echo "unknown")
|
||||||
else
|
else
|
||||||
version_info="unknown"
|
version_info="unknown"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user