diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index b7f9292ff..1aeb0d774 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,10 +4,7 @@
-
-
-
-
+
@@ -49,7 +46,7 @@
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager": "true",
"RunOnceActivity.git.unshallow": "true",
"SHELLCHECK.PATH": "/Users/cyberpersons/Library/Application Support/JetBrains/PyCharm2025.1/plugins/Shell Script/shellcheck",
- "git-widget-placeholder": "v2.4.3",
+ "git-widget-placeholder": "v2.4.4-dev",
"last_opened_file_path": "/Users/cyberpersons/cyberpanel",
"node.js.detected.package.eslint": "true",
"node.js.detected.package.tslint": "true",
diff --git a/plogical/installUtilities.py b/plogical/installUtilities.py
index 964c1db9d..982655ac9 100644
--- a/plogical/installUtilities.py
+++ b/plogical/installUtilities.py
@@ -42,35 +42,12 @@ class installUtilities:
@staticmethod
def addLiteSpeedRepo():
try:
- # Detect OS version to use the correct repository
- el_version = "7" # Default to el7
+ # Use the official LiteSpeed repository installation script
+ # This supports all OS versions including CentOS/AlmaLinux/Rocky 7, 8, and 9
+ cmd = "wget -O - https://repo.litespeed.sh | bash"
- # Check for OS version
- if os.path.exists('/etc/os-release'):
- with open('/etc/os-release', 'r') as f:
- content = f.read()
- # Check for RHEL/CentOS/AlmaLinux/Rocky 9
- if 'VERSION_ID="9' in content or 'VERSION_ID=9' in content:
- el_version = "9"
- # Check for RHEL/CentOS/AlmaLinux/Rocky 8
- elif 'VERSION_ID="8' in content or 'VERSION_ID=8' in content:
- el_version = "8"
+ res = subprocess.call(cmd, shell=True)
- # Use the appropriate repository URL based on version
- repo_urls = {
- "7": "http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm",
- "8": "http://rpms.litespeedtech.com/centos/litespeed-repo-1.3-1.el8.noarch.rpm",
- "9": "http://rpms.litespeedtech.com/centos/litespeed-repo-1.3-1.el9.noarch.rpm"
- }
-
- repo_url = repo_urls.get(el_version, repo_urls["7"])
-
- cmd = []
- cmd.append("rpm")
- cmd.append("-ivh")
- cmd.append(repo_url)
-
- res = subprocess.call(cmd)
if res == 1:
print("###############################################")
print(" Could not add Litespeed repo " )