From 92f71a09286e460bae9cfed3445b83ff2ac3d9e4 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Sat, 20 Jul 2024 16:27:35 +0500 Subject: [PATCH] bug fix https://github.com/usmannasir/cyberpanel/issues/1288 alma update --- plogical/processUtilities.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plogical/processUtilities.py b/plogical/processUtilities.py index c6cbe4289..4dd4a2b41 100755 --- a/plogical/processUtilities.py +++ b/plogical/processUtilities.py @@ -167,6 +167,7 @@ class ProcessUtilities(multi.Thread): @staticmethod def decideDistro(): distroPath = '/etc/lsb-release' + distroPathAlma = '/etc/redhat-release' if os.path.exists(distroPath): @@ -182,7 +183,7 @@ class ProcessUtilities(multi.Thread): or open('/etc/redhat-release', 'r').read().find('Rocky Linux release 8') > -1 \ or open('/etc/redhat-release', 'r').read().find('Rocky Linux release 9') > -1 or open('/etc/redhat-release', 'r').read().find('AlmaLinux release 9') > -1: ## this is check only - if open(distroPath, 'r').read().find('AlmaLinux release 9') > -1 or open(distroPath, 'r').read().find('Rocky Linux release 9') > -1: + if open(distroPathAlma, 'r').read().find('AlmaLinux release 9') > -1 or open(distroPathAlma, 'r').read().find('Rocky Linux release 9') > -1: ProcessUtilities.alma9check = 1 return ProcessUtilities.cent8