noVNC 스크립트 CLI 인자 지원 + Phase 9 자동 PVE 접속 정보 전달
- VNC/pharmq-novnc-setup.sh: --pve-host, --pve-password, --pharmacy-code, --pharmacy-name 인자 추가 - 인자 있으면 대화형 입력 스킵, 없으면 기존대로 대화형 - set -euo → set -eo (unset 변수 에러 방지) - pharmq-setup.sh Phase 9: PVE LAN IP 자동 감지 + 약국 정보 인자로 전달 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1086,9 +1086,14 @@ phase9_novnc_setup() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
# CT 안에서 noVNC 설치 스크립트 실행
|
||||
# PVE host IP 감지 (CT에서 PVE API에 접근할 LAN IP)
|
||||
local PVE_LAN_IP
|
||||
PVE_LAN_IP=$(hostname -I | awk '{print $1}')
|
||||
|
||||
# CT 안에서 noVNC 설치 스크립트 실행 (PVE 접속 정보 + 약국 정보 자동 전달)
|
||||
print_step "CT $CT_VMID 내부에 noVNC 설치 중..."
|
||||
pct exec "$CT_VMID" -- bash -c "curl -fsSL https://git.0bin.in/thug0bin/pve9-repo-fix/raw/branch/main/VNC/pharmq-novnc-setup.sh -o /tmp/pharmq-novnc-setup.sh && chmod +x /tmp/pharmq-novnc-setup.sh && bash /tmp/pharmq-novnc-setup.sh; rm -f /tmp/pharmq-novnc-setup.sh" || true
|
||||
print_info "PVE API: ${PVE_LAN_IP}:8006, 약국: ${PHARMACY_CODE:-미정} (${PHARMACY_NAME:-미정})"
|
||||
pct exec "$CT_VMID" -- bash -c "curl -fsSL https://git.0bin.in/thug0bin/pve9-repo-fix/raw/branch/main/VNC/pharmq-novnc-setup.sh -o /tmp/pharmq-novnc-setup.sh && chmod +x /tmp/pharmq-novnc-setup.sh && bash /tmp/pharmq-novnc-setup.sh --pve-host ${PVE_LAN_IP} --pve-password trajet6640 --pharmacy-code ${PHARMACY_CODE:-P0000} --pharmacy-name '${PHARMACY_NAME:-미정}'; rm -f /tmp/pharmq-novnc-setup.sh" || true
|
||||
|
||||
print_ok "Phase 9 완료: noVNC 설치 (CT $CT_VMID)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user