Skip to content

Commit 550af72

Browse files
committed
bug fix #1288 alma update
1 parent 60e447f commit 550af72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plogical/processUtilities.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ def decideServer():
167167
@staticmethod
168168
def decideDistro():
169169
distroPath = '/etc/lsb-release'
170+
distroPathAlma = '/etc/redhat-release'
170171

171172
if os.path.exists(distroPath):
172173

@@ -182,7 +183,7 @@ def decideDistro():
182183
or open('/etc/redhat-release', 'r').read().find('Rocky Linux release 8') > -1 \
183184
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:
184185
## this is check only
185-
if open(distroPath, 'r').read().find('AlmaLinux release 9') > -1 or open(distroPath, 'r').read().find('Rocky Linux release 9') > -1:
186+
if open(distroPathAlma, 'r').read().find('AlmaLinux release 9') > -1 or open(distroPathAlma, 'r').read().find('Rocky Linux release 9') > -1:
186187
ProcessUtilities.alma9check = 1
187188

188189
return ProcessUtilities.cent8

0 commit comments

Comments
 (0)