From fd6eb8895c3bf57c80b514ba1d7a09ae7e7ea9dd Mon Sep 17 00:00:00 2001 From: Master3395 Date: Thu, 25 Sep 2025 22:45:35 +0200 Subject: [PATCH] Update repository URLs to use secure HTTPS links - Changed repository URLs in the CyberPanel upgrade script and related installation scripts to use HTTPS for improved security. - Updated the `mailscannerinstaller.sh` and `spamassassin_tojunk_installer.sh` scripts to reflect the new secure URLs. - Modified the `install.py` script to include an additional parameter in the `update_settings_file` method for better password management. --- CPScripts/mailscannerinstaller.sh | 2 +- CPScripts/spamassassin_tojunk_installer.sh | 2 +- cyberpanel_upgrade.sh | 4 ++-- install/install.py | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CPScripts/mailscannerinstaller.sh b/CPScripts/mailscannerinstaller.sh index 190a5ebf4..76a20e02d 100644 --- a/CPScripts/mailscannerinstaller.sh +++ b/CPScripts/mailscannerinstaller.sh @@ -295,7 +295,7 @@ IPADDRESS=$(cat /etc/cyberpanel/machineIP) # #elif [ "$CENTOSVERSION" = "VERSION_ID=\"8\"" ]; then # -# rpm -Uvh http://mirror.ghettoforge.net/distributions/gf/el/8/gf/x86_64/gf-release-8-11.gf.el8.noarch.rpm +# rpm -Uvh https://mirror.ghettoforge.net/distributions/gf/el/8/gf/x86_64/gf-release-8-11.gf.el8.noarch.rpm # dnf --enablerepo=gf-plus upgrade -y dovecot23* # dnf --enablerepo=gf-plus install -y dovecot23-pigeonhole # dnf install -y net-tools postfix-perl-scripts diff --git a/CPScripts/spamassassin_tojunk_installer.sh b/CPScripts/spamassassin_tojunk_installer.sh index 3c76f7a1a..4ec6ab125 100644 --- a/CPScripts/spamassassin_tojunk_installer.sh +++ b/CPScripts/spamassassin_tojunk_installer.sh @@ -40,7 +40,7 @@ elif [ "$CENTOSVERSION" = "VERSION_ID=\"7\"" ];then elif [ "$CENTOSVERSION" = "VERSION_ID=\"8\"" ];then - rpm -Uvh http://mirror.ghettoforge.net/distributions/gf/el/8/gf/x86_64/gf-release-8-11.gf.el8.noarch.rpm + rpm -Uvh https://mirror.ghettoforge.net/distributions/gf/el/8/gf/x86_64/gf-release-8-11.gf.el8.noarch.rpm dnf --enablerepo=gf-plus upgrade -y dovecot23* dnf --enablerepo=gf-plus install -y dovecot23-pigeonhole dnf install -y net-tools postfix-perl-scripts diff --git a/cyberpanel_upgrade.sh b/cyberpanel_upgrade.sh index 68044f275..050f3838c 100644 --- a/cyberpanel_upgrade.sh +++ b/cyberpanel_upgrade.sh @@ -441,8 +441,8 @@ EOF # use MariaDB Mirror sed -i 's|https://download.copr.fedorainfracloud.org|https://cyberpanel.sh/download.copr.fedorainfracloud.org|g' /etc/yum.repos.d/_copr_copart-restic.repo sed -i 's|http://repo.iotti.biz|https://cyberpanel.sh/repo.iotti.biz|g' /etc/yum.repos.d/frank.repo - sed -i "s|mirrorlist=http://mirrorlist.ghettoforge.org/el/7/gf/\$basearch/mirrorlist|baseurl=https://cyberpanel.sh/mirror.ghettoforge.net/distributions/gf/el/7/gf/x86_64/|g" /etc/yum.repos.d/gf.repo - sed -i "s|mirrorlist=http://mirrorlist.ghettoforge.org/el/7/plus/\$basearch/mirrorlist|baseurl=https://cyberpanel.sh/mirror.ghettoforge.net/distributions/gf/el/7/plus/x86_64/|g" /etc/yum.repos.d/gf.repo + sed -i "s|mirrorlist=https://mirrorlist.ghettoforge.net/el/7/gf/\$basearch/mirrorlist|baseurl=https://cyberpanel.sh/mirror.ghettoforge.net/distributions/gf/el/7/gf/x86_64/|g" /etc/yum.repos.d/gf.repo + sed -i "s|mirrorlist=https://mirrorlist.ghettoforge.net/el/7/plus/\$basearch/mirrorlist|baseurl=https://cyberpanel.sh/mirror.ghettoforge.net/distributions/gf/el/7/plus/x86_64/|g" /etc/yum.repos.d/gf.repo sed -i 's|https://repo.ius.io|https://cyberpanel.sh/repo.ius.io|g' /etc/yum.repos.d/ius.repo sed -i 's|http://repo.iotti.biz|https://cyberpanel.sh/repo.iotti.biz|g' /etc/yum.repos.d/lux.repo sed -i 's|http://repo.powerdns.com|https://cyberpanel.sh/repo.powerdns.com|g' /etc/yum.repos.d/powerdns-auth-43.repo diff --git a/install/install.py b/install/install.py index c8d69b477..97bab796b 100644 --- a/install/install.py +++ b/install/install.py @@ -1737,7 +1737,7 @@ class preFlightsChecks: self.install_package("psmisc") - def update_settings_file(self, mysqlPassword, password): + def update_settings_file(self, mysqlPassword, password, mysql): """ Update settings.py file with correct passwords (working version approach) """ @@ -1994,7 +1994,7 @@ password="%s" self.cyberpanel_db_password = password # Update settings.py with correct passwords (no .env files needed) - self.update_settings_file(mysqlPassword, self.cyberpanel_db_password) + self.update_settings_file(mysqlPassword, self.cyberpanel_db_password, mysql) logging.InstallLog.writeToFile("Environment configuration generated successfully!") @@ -5233,7 +5233,7 @@ def main(): checks.installFirewalld() checks.install_default_keys() - checks.download_install_CyberPanel(checks.cyberpanel_db_password, mysql) + checks.download_install_CyberPanel(checks.mysqlpassword, mysql) checks.downoad_and_install_raindloop() checks.download_install_phpmyadmin() checks.setupCLI()