mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-07 00:26:52 +02:00
install: detectPlatform treat bare VERSION_ID 9/10 as rhel9 for OLS binaries
This commit is contained in:
@@ -308,6 +308,9 @@ class InstallCyberPanel:
|
||||
if f'version="{ver}' in content or f'version_id="{ver}' in content:
|
||||
if any(distro in content for distro in ['red hat', 'almalinux', 'rocky', 'cloudlinux', 'centos']):
|
||||
return 'rhel9'
|
||||
if 'version_id="9"' in content or 'version_id="10"' in content:
|
||||
if any(distro in content for distro in ['red hat', 'almalinux', 'rocky', 'cloudlinux', 'centos']):
|
||||
return 'rhel9'
|
||||
|
||||
if self.distro == ubuntu:
|
||||
return 'ubuntu'
|
||||
|
||||
Reference in New Issue
Block a user