Forráskód Böngészése

Update install.sh

zehe 3 hónapja
szülő
commit
603c35ae9e
1 módosított fájl, 8 hozzáadás és 0 törlés
  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"