소스 검색

Update install.sh

zehe 3 달 전
부모
커밋
603c35ae9e
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      install.sh

+ 8 - 0
install.sh

@@ -126,6 +126,14 @@ install_application() {
 setup_python_environment() {
     print_status "Setting up Python virtual environment..."
 
+    # Test if venv module is available
+    if ! python3 -m venv --help > /dev/null 2>&1; then
+        print_error "Python venv module not available. Please install python3-venv or equivalent."
+        print_error "On Ubuntu/Debian: sudo apt install python3-venv"
+        print_error "On CentOS/RHEL: venv is built-in with Python 3.3+"
+        exit 1
+    fi
+
     # Create virtual environment
     sudo -u "$SERVICE_USER" python3 -m venv "$INSTALL_DIR/venv"