From 74b5ce97d490880ebf996c780b643f854e8ed925 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Thu, 18 Sep 2025 01:15:38 +0500 Subject: [PATCH] debian 13 ols fix --- cyberpanel.sh | 2 +- dockerManager/Dockerfile | 2 +- install/install.py | 9 ++------- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index c16f668f0..20c465a87 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -1721,7 +1721,7 @@ log_function_end "License_Validation" Pre_Install_CN_Replacement() { if [[ "$Server_OS" = "Ubuntu" ]] ; then - sed -i 's|wget http://rpms.litespeedtech.com/debian/|wget https://cyberpanel.sh/litespeed/|g' install.py + sed -i 's|https://repo.litespeed.sh|https://cyberpanel.sh/litespeed/enable_lst_debian_repo.sh|g' install.py sed -i 's|https://repo.dovecot.org/|https://cyberpanel.sh/repo.dovecot.org/|g' install.py fi #replace litespeed repo on ubuntu 18/20 diff --git a/dockerManager/Dockerfile b/dockerManager/Dockerfile index c61ec1dc7..86a65677b 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 - http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh | bash +RUN wget -O - https://repo.litespeed.sh | bash RUN apt-get install -y openlitespeed diff --git a/install/install.py b/install/install.py index b5c290b1c..e7e374c79 100644 --- a/install/install.py +++ b/install/install.py @@ -462,13 +462,8 @@ class preFlightsChecks: if self.distro == ubuntu: try: - filename = "enable_lst_debain_repo.sh" - command = "wget http://rpms.litespeedtech.com/debian/" + filename - preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) - - os.chmod(filename, S_IRWXU | S_IRWXG) - - command = "./" + filename + # Use the new LiteSpeed repository setup method + command = "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")