bug fix: fetch apache php path on al8 and 9

This commit is contained in:
usmannasir
2024-09-30 12:40:19 +05:00
parent 999531b837
commit 7d4ca8bf0b
2 changed files with 11 additions and 10 deletions

View File

@@ -241,6 +241,10 @@ class phpUtilities:
# Input string
#php_version = "php73"
if ProcessUtilities.decideDistro() == ProcessUtilities.centos or ProcessUtilities.decideDistro() == ProcessUtilities.cent8:
command = f'/opt/remi/{php_version}/root/bin/php'
return command
else:
# Insert a period between '7' and '3' to convert it to 'php7.3'
converted_version = php_version[:4] + '.' + php_version[4:]

View File

@@ -1,3 +0,0 @@
strr='8.0.30'
print(strr[:3])