debian 13 ols fix

This commit is contained in:
usmannasir
2025-09-18 01:29:38 +05:00
parent 74b5ce97d4
commit 0e45e6272c
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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")

View File

@@ -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)