Skip to content

build.func wrong regex for checking pve version (triggered by unifi.sh)Β #4383

@czarnyWhisper

Description

@czarnyWhisper

βœ… Have you read and understood the above guidelines?

yes

πŸ“œ What is the name of the script you are using?

https://raw.githubusercontent.com/tteck/Proxmox/main/ct/unifi.sh

πŸ“‚ What was the exact command used to execute the script?

bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/unifi.sh)"

βš™οΈ What settings are you using?

  • Default Settings
  • Advanced Settings

πŸ–₯️ Which Linux distribution are you using?

Debian 12

πŸ“ Provide a clear and concise description of the issue.

When trying to run script bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/unifi.sh)", I've got an error:

This version of Proxmox Virtual Environment is not supported
Requires Proxmox Virtual Environment Version 8.1 or later.

My version:

root@pve:~# pveversion 
pve-manager/8.4.1/2a5fa54a8503f96d (running kernel: 6.8.12-10-pve)

After looking at script, I can see, that in build.func script (which is included in unifi.sh) in line ~178:

if ! pveversion | grep -Eq "pve-manager/8\.[0-4](\.[0-9]+)*"; then"

there is a problem with regex. I'm not goot at it, but it seems that something like this:

grep "pve-manager/8\.[0-4]\.[0-9]*"

works.

πŸ”„ Steps to reproduce the issue.

Run script
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/unifi.sh)"

❌ Paste the full error output (if available).

   __  __      _ _____ 
  / / / /__   (_) __(_)
 / / / / __ \/ / /_/ / 
/ /_/ / / / / / __/ /  
\____/_/ /_/_/_/ /_/   
 
Loading...
 βœ— This version of Proxmox Virtual Environment is not supported
Requires Proxmox Virtual Environment Version 8.1 or later.
Exiting...

πŸ–ΌοΈ Additional context (optional).

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions