diff --git a/dockerManager/Dockerfile b/dockerManager/Dockerfile index 86a65677b..d479c7be8 100644 --- a/dockerManager/Dockerfile +++ b/dockerManager/Dockerfile @@ -6,7 +6,7 @@ RUN apt-get update && \ apt-get install -y wget gnupg ca-certificates # Install OpenLiteSpeed -RUN wget -O - https://repo.litespeed.sh | bash +RUN bash -c 'wget -O - https://repo.litespeed.sh | bash' RUN apt-get install -y openlitespeed diff --git a/install/install.py b/install/install.py index e7e374c79..14e8309a2 100644 --- a/install/install.py +++ b/install/install.py @@ -463,7 +463,7 @@ class preFlightsChecks: if self.distro == ubuntu: try: # Use the new LiteSpeed repository setup method - command = "wget -O - https://repo.litespeed.sh | bash" + command = "bash -c 'wget -O - https://repo.litespeed.sh | bash'" preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) except: logging.InstallLog.writeToFile("[ERROR] Exception during CyberPanel install") diff --git a/plogical/installUtilities.py b/plogical/installUtilities.py index 982655ac9..daf83f30f 100644 --- a/plogical/installUtilities.py +++ b/plogical/installUtilities.py @@ -44,7 +44,7 @@ class installUtilities: try: # 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" + cmd = "bash -c 'wget -O - https://repo.litespeed.sh | bash'" res = subprocess.call(cmd, shell=True)