debian 13 ols fix

This commit is contained in:
usmannasir
2025-09-18 01:15:38 +05:00
parent bedd7c2264
commit 74b5ce97d4
3 changed files with 4 additions and 9 deletions

View File

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

View File

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

View File

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