diff --git a/README.md b/README.md index 44f84e1b..2ce33fa6 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ CentOS Stream 可使用迁移脚本迁移至支持的系统: [CentOS 8/9 迁移 如果你决定继续,请以`root`用户登录服务器,执行以下命令安装面板: ```shell -HAOZI_DL_URL="https://git.haozi.net/opensource/download/-/raw/main/panel"; curl -sSL -O ${HAOZI_DL_URL}/install_panel.sh && curl -sSL -O ${HAOZI_DL_URL}/install_panel.sh.checksum.txt && sha256sum -c install_panel.sh.checksum.txt && bash install_panel.sh || echo "Checksum 验证失败,文件可能被篡改,已终止操作" +HAOZI_DL_URL="https://dl.cdn.haozi.net/panel"; curl -sSL -O ${HAOZI_DL_URL}/install_panel.sh && curl -sSL -O ${HAOZI_DL_URL}/install_panel.sh.checksum.txt && sha256sum -c install_panel.sh.checksum.txt && bash install_panel.sh || echo "Checksum 验证失败,文件可能被篡改,已终止操作" ``` ## 卸载面板 @@ -67,7 +67,7 @@ HAOZI_DL_URL="https://git.haozi.net/opensource/download/-/raw/main/panel"; curl 如果你无法重装系统,请以`root`用户登录服务器,执行以下命令卸载面板: ```shell -HAOZI_DL_URL="https://git.haozi.net/opensource/download/-/raw/main/panel"; curl -sSL -O ${HAOZI_DL_URL}/uninstall_panel.sh && curl -sSL -O ${HAOZI_DL_URL}/uninstall_panel.sh.checksum.txt && sha256sum -c uninstall_panel.sh.checksum.txt && bash uninstall_panel.sh || echo "Checksum 验证失败,文件可能被篡改,已终止操作" +HAOZI_DL_URL="https://dl.cdn.haozi.net/panel"; curl -sSL -O ${HAOZI_DL_URL}/uninstall_panel.sh && curl -sSL -O ${HAOZI_DL_URL}/uninstall_panel.sh.checksum.txt && sha256sum -c uninstall_panel.sh.checksum.txt && bash uninstall_panel.sh || echo "Checksum 验证失败,文件可能被篡改,已终止操作" ``` 卸载面板前请务必备份好所有数据,提前卸载面板全部插件。卸载后数据将**无法恢复**! diff --git a/README_EN.md b/README_EN.md index b36763e2..af323902 100644 --- a/README_EN.md +++ b/README_EN.md @@ -57,7 +57,7 @@ As system versions are constantly updated, we may also terminate support for som If you decide to continue, please log in to the server as `root` user and execute the following command to install the panel: ```shell -HAOZI_DL_URL="https://git.haozi.net/opensource/download/-/raw/main/panel"; curl -sSL -O ${HAOZI_DL_URL}/install_panel.sh && curl -sSL -O ${HAOZI_DL_URL}/install_panel.sh.checksum.txt && sha256sum -c install_panel.sh.checksum.txt && bash install_panel.sh || echo "Checksum Verification Failed, File May Have Been Tampered With, Operation Terminated" +HAOZI_DL_URL="https://dl.cdn.haozi.net/panel"; curl -sSL -O ${HAOZI_DL_URL}/install_panel.sh && curl -sSL -O ${HAOZI_DL_URL}/install_panel.sh.checksum.txt && sha256sum -c install_panel.sh.checksum.txt && bash install_panel.sh || echo "Checksum Verification Failed, File May Have Been Tampered With, Operation Terminated" ``` ## Uninstall Panel @@ -67,7 +67,7 @@ Recommended to back up data and reinstall the system first, so that the system c If you are unable to reinstall the system, log in to the server as the `root` user and execute the following command to uninstall the panel: ```shell -HAOZI_DL_URL="https://git.haozi.net/opensource/download/-/raw/main/panel"; curl -sSL -O ${HAOZI_DL_URL}/uninstall_panel.sh && curl -sSL -O ${HAOZI_DL_URL}/uninstall_panel.sh.checksum.txt && sha256sum -c uninstall_panel.sh.checksum.txt && bash uninstall_panel.sh || echo "Checksum Verification Failed, File May Have Been Tampered With, Operation Terminated" +HAOZI_DL_URL="https://dl.cdn.haozi.net/panel"; curl -sSL -O ${HAOZI_DL_URL}/uninstall_panel.sh && curl -sSL -O ${HAOZI_DL_URL}/uninstall_panel.sh.checksum.txt && sha256sum -c uninstall_panel.sh.checksum.txt && bash uninstall_panel.sh || echo "Checksum Verification Failed, File May Have Been Tampered With, Operation Terminated" ``` Before uninstalling the panel, please be sure to back up all data and uninstall all panel plugins in advance. The data will **not be recoverable** after uninstallation! diff --git a/scripts/mysql/install.sh b/scripts/mysql/install.sh index e6c6eef2..c23f8507 100644 --- a/scripts/mysql/install.sh +++ b/scripts/mysql/install.sh @@ -22,7 +22,7 @@ HR="+----------------------------------------------------" ARCH=$(uname -m) memTotal=$(LC_ALL=C free -m | grep Mem | awk '{print $2}') OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || { [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]] || [[ "$ID" == "rocky" ]] || [[ "$ID" == "almalinux" ]] && echo "centos"; } || echo "unknown") -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/mysql" +downloadUrl="https://dl.cdn.haozi.net/panel/mysql" setupPath="/www" mysqlPath="${setupPath}/server/mysql" mysqlVersion="" diff --git a/scripts/mysql/update.sh b/scripts/mysql/update.sh index b7445170..d9131152 100644 --- a/scripts/mysql/update.sh +++ b/scripts/mysql/update.sh @@ -22,7 +22,7 @@ HR="+----------------------------------------------------" ARCH=$(uname -m) memTotal=$(LC_ALL=C free -m | grep Mem | awk '{print $2}') OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || { [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]] || [[ "$ID" == "rocky" ]] || [[ "$ID" == "almalinux" ]] && echo "centos"; } || echo "unknown") -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/mysql" +downloadUrl="https://dl.cdn.haozi.net/panel/mysql" setupPath="/www" mysqlPath="${setupPath}/server/mysql" mysqlVersion="" diff --git a/scripts/openresty/install.sh b/scripts/openresty/install.sh index c23b7a0d..9fe7f99b 100644 --- a/scripts/openresty/install.sh +++ b/scripts/openresty/install.sh @@ -21,7 +21,7 @@ along with this program. If not, see . HR="+----------------------------------------------------" ARCH=$(uname -m) OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || { [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]] || [[ "$ID" == "rocky" ]] || [[ "$ID" == "almalinux" ]] && echo "centos"; } || echo "unknown") -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/openresty" +downloadUrl="https://dl.cdn.haozi.net/panel/openresty" setupPath="/www" openrestyPath="${setupPath}/server/openresty" openrestyVersion="1.25.3.1" diff --git a/scripts/php/install.sh b/scripts/php/install.sh index d3bbb5f4..d4cd87f8 100644 --- a/scripts/php/install.sh +++ b/scripts/php/install.sh @@ -21,7 +21,7 @@ along with this program. If not, see . HR="+----------------------------------------------------" ARCH=$(uname -m) OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || { [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]] || [[ "$ID" == "rocky" ]] || [[ "$ID" == "almalinux" ]] && echo "centos"; } || echo "unknown") -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/php" +downloadUrl="https://dl.cdn.haozi.net/panel/php" setupPath="/www" phpVersion="${1}" phpVersionCode="" diff --git a/scripts/php_extensions/Swow.sh b/scripts/php_extensions/Swow.sh index ee57c5f9..3894e3d0 100644 --- a/scripts/php_extensions/Swow.sh +++ b/scripts/php_extensions/Swow.sh @@ -20,7 +20,7 @@ along with this program. If not, see . HR="+----------------------------------------------------" -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/php_extensions" +downloadUrl="https://dl.cdn.haozi.net/panel/php_extensions" action="$1" phpVersion="$2" swowVersion="1.4.1" diff --git a/scripts/php_extensions/igbinary.sh b/scripts/php_extensions/igbinary.sh index 549b1a7f..5216f369 100644 --- a/scripts/php_extensions/igbinary.sh +++ b/scripts/php_extensions/igbinary.sh @@ -20,7 +20,7 @@ along with this program. If not, see . HR="+----------------------------------------------------" -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/php_extensions" +downloadUrl="https://dl.cdn.haozi.net/panel/php_extensions" action="$1" phpVersion="$2" igbinaryVersion="3.2.15" diff --git a/scripts/php_extensions/imagick.sh b/scripts/php_extensions/imagick.sh index e07f3ab0..4408fa3e 100644 --- a/scripts/php_extensions/imagick.sh +++ b/scripts/php_extensions/imagick.sh @@ -21,7 +21,7 @@ along with this program. If not, see . HR="+----------------------------------------------------" OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || { [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]] || [[ "$ID" == "rocky" ]] || [[ "$ID" == "almalinux" ]] && echo "centos"; } || echo "unknown") -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/php_extensions" +downloadUrl="https://dl.cdn.haozi.net/panel/php_extensions" action="$1" phpVersion="$2" imagickVersion="3.7.0" diff --git a/scripts/php_extensions/ionCube Loader.sh b/scripts/php_extensions/ionCube Loader.sh index dd9ad85c..fabc6903 100644 --- a/scripts/php_extensions/ionCube Loader.sh +++ b/scripts/php_extensions/ionCube Loader.sh @@ -20,7 +20,7 @@ along with this program. If not, see . HR="+----------------------------------------------------" -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/php_extensions" +downloadUrl="https://dl.cdn.haozi.net/panel/php_extensions" action="$1" phpVersion="$2" diff --git a/scripts/php_extensions/redis.sh b/scripts/php_extensions/redis.sh index 29646127..442c4405 100644 --- a/scripts/php_extensions/redis.sh +++ b/scripts/php_extensions/redis.sh @@ -20,7 +20,7 @@ along with this program. If not, see . HR="+----------------------------------------------------" -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/php_extensions" +downloadUrl="https://dl.cdn.haozi.net/panel/php_extensions" action="$1" phpVersion="$2" phpredisVersion="5.3.7" diff --git a/scripts/php_extensions/swoole.sh b/scripts/php_extensions/swoole.sh index 8db97805..e6f4101c 100644 --- a/scripts/php_extensions/swoole.sh +++ b/scripts/php_extensions/swoole.sh @@ -20,7 +20,7 @@ along with this program. If not, see . HR="+----------------------------------------------------" -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/php_extensions" +downloadUrl="https://dl.cdn.haozi.net/panel/php_extensions" action="$1" phpVersion="$2" swooleVersion="5.1.2" diff --git a/scripts/phpmyadmin/install.sh b/scripts/phpmyadmin/install.sh index fbbd5c40..34531868 100644 --- a/scripts/phpmyadmin/install.sh +++ b/scripts/phpmyadmin/install.sh @@ -21,7 +21,7 @@ along with this program. If not, see . HR="+----------------------------------------------------" ARCH=$(uname -m) OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || { [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]] || [[ "$ID" == "rocky" ]] || [[ "$ID" == "almalinux" ]] && echo "centos"; } || echo "unknown") -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/phpmyadmin" +downloadUrl="https://dl.cdn.haozi.net/panel/phpmyadmin" setupPath="/www" phpmyadminPath="${setupPath}/server/phpmyadmin" phpmyadminVersion="5.2.1" diff --git a/scripts/postgresql/install.sh b/scripts/postgresql/install.sh index 750cc797..303f3ab6 100644 --- a/scripts/postgresql/install.sh +++ b/scripts/postgresql/install.sh @@ -22,7 +22,7 @@ HR="+----------------------------------------------------" ARCH=$(uname -m) memTotal=$(LC_ALL=C free -m | grep Mem | awk '{print $2}') OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || { [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]] || [[ "$ID" == "rocky" ]] || [[ "$ID" == "almalinux" ]] && echo "centos"; } || echo "unknown") -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/postgresql" +downloadUrl="https://dl.cdn.haozi.net/panel/postgresql" setupPath="/www" postgresqlPath="${setupPath}/server/postgresql" postgresqlVersion="" diff --git a/scripts/postgresql/update.sh b/scripts/postgresql/update.sh index 6addc00c..ce791357 100644 --- a/scripts/postgresql/update.sh +++ b/scripts/postgresql/update.sh @@ -22,7 +22,7 @@ HR="+----------------------------------------------------" ARCH=$(uname -m) memTotal=$(LC_ALL=C free -m | grep Mem | awk '{print $2}') OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || { [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]] || [[ "$ID" == "rocky" ]] || [[ "$ID" == "almalinux" ]] && echo "centos"; } || echo "unknown") -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/postgresql" +downloadUrl="https://dl.cdn.haozi.net/panel/postgresql" setupPath="/www" postgresqlPath="${setupPath}/server/postgresql" postgresqlVersion="" diff --git a/scripts/pureftpd/install.sh b/scripts/pureftpd/install.sh index cbe0af00..b1d633b3 100644 --- a/scripts/pureftpd/install.sh +++ b/scripts/pureftpd/install.sh @@ -20,7 +20,7 @@ along with this program. If not, see . HR="+----------------------------------------------------" OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || { [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]] || [[ "$ID" == "rocky" ]] || [[ "$ID" == "almalinux" ]] && echo "centos"; } || echo "unknown") -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/pure-ftpd" +downloadUrl="https://dl.cdn.haozi.net/panel/pure-ftpd" setupPath="/www" pureftpdPath="${setupPath}/server/pure-ftpd" pureftpdVersion="1.0.50" diff --git a/scripts/pureftpd/update.sh b/scripts/pureftpd/update.sh index 1624f497..f4fa90c2 100644 --- a/scripts/pureftpd/update.sh +++ b/scripts/pureftpd/update.sh @@ -20,7 +20,7 @@ along with this program. If not, see . HR="+----------------------------------------------------" OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || { [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]] || [[ "$ID" == "rocky" ]] || [[ "$ID" == "almalinux" ]] && echo "centos"; } || echo "unknown") -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/pure-ftpd" +downloadUrl="https://dl.cdn.haozi.net/panel/pure-ftpd" setupPath="/www" pureftpdPath="${setupPath}/server/pure-ftpd" pureftpdVersion="1.0.50" diff --git a/scripts/redis/install.sh b/scripts/redis/install.sh index af155270..02f057e3 100644 --- a/scripts/redis/install.sh +++ b/scripts/redis/install.sh @@ -21,7 +21,7 @@ along with this program. If not, see . HR="+----------------------------------------------------" ARCH=$(uname -m) OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || { [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]] || [[ "$ID" == "rocky" ]] || [[ "$ID" == "almalinux" ]] && echo "centos"; } || echo "unknown") -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/redis" +downloadUrl="https://dl.cdn.haozi.net/panel/redis" setupPath="/www" redisPath="${setupPath}/server/redis" redisVersion="7.2.4" diff --git a/scripts/redis/update.sh b/scripts/redis/update.sh index 7077dab3..2ae4ad8e 100644 --- a/scripts/redis/update.sh +++ b/scripts/redis/update.sh @@ -21,7 +21,7 @@ along with this program. If not, see . HR="+----------------------------------------------------" ARCH=$(uname -m) OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || { [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]] || [[ "$ID" == "rocky" ]] || [[ "$ID" == "almalinux" ]] && echo "centos"; } || echo "unknown") -downloadUrl="https://git.haozi.net/opensource/download/-/raw/main/panel/redis" +downloadUrl="https://dl.cdn.haozi.net/panel/redis" setupPath="/www" redisPath="${setupPath}/server/redis" redisVersion="7.2.4"