mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-07 08:02:04 +01:00
debian 13 ols fix
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user