fix install v2.15.X
This commit is contained in:
@@ -29,7 +29,7 @@ Base URL: **https://git.linuxiarz.pl/gru/npm-angie-auto-install**
|
|||||||
---
|
---
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
- Debian 11+ / Ubuntu 20.04+
|
- Debian 12+ / Ubuntu 20.04+
|
||||||
- `curl`, `python3`, `sudo`
|
- `curl`, `python3`, `sudo`
|
||||||
- Network access to fetch packages and Node/Yarn artifacts.
|
- Network access to fetch packages and Node/Yarn artifacts.
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -726,13 +726,13 @@ def validate_supported_os():
|
|||||||
distro_id = OSREL.get("ID", "").lower()
|
distro_id = OSREL.get("ID", "").lower()
|
||||||
version_id = OSREL.get("VERSION_ID", "").strip()
|
version_id = OSREL.get("VERSION_ID", "").strip()
|
||||||
|
|
||||||
SUPPORTED = {"debian": ["11", "12", "13"], "ubuntu": ["20.04", "22.04", "24.04"]}
|
SUPPORTED = {"debian": ["12", "13"], "ubuntu": ["20.04", "22.04", "24.04"]}
|
||||||
|
|
||||||
if distro_id not in SUPPORTED:
|
if distro_id not in SUPPORTED:
|
||||||
print(f"\n ⚠ ERROR: Unsupported distribution: {distro_id}")
|
print(f"\n ⚠ ERROR: Unsupported distribution: {distro_id}")
|
||||||
print(f" Detected: {OSREL.get('PRETTY', 'Unknown')}")
|
print(f" Detected: {OSREL.get('PRETTY', 'Unknown')}")
|
||||||
print(f"\n Supported distributions:")
|
print(f"\n Supported distributions:")
|
||||||
print(f" • Debian 11 (Bullseye), 12 (Bookworm), 13 (Trixie)")
|
print(f" • Debian 12 (Bookworm), 13 (Trixie)")
|
||||||
print(f" • Ubuntu 20.04 LTS, 22.04 LTS, 24.04 LTS")
|
print(f" • Ubuntu 20.04 LTS, 22.04 LTS, 24.04 LTS")
|
||||||
print(f" • Debian derivatives: Proxmox, armbian")
|
print(f" • Debian derivatives: Proxmox, armbian")
|
||||||
print(f"\n Your distribution may work but is not tested.")
|
print(f"\n Your distribution may work but is not tested.")
|
||||||
|
|||||||
Reference in New Issue
Block a user