2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 11:27:17 +08:00

feat: 安装脚本优化

This commit is contained in:
耗子
2023-10-06 00:22:09 +08:00
parent be7063b4fc
commit 046c28a387
16 changed files with 34 additions and 34 deletions

View File

@@ -70,7 +70,7 @@ else
exit 1
fi
wget -O ${phpPath}/php-${phpVersion}.tar.gz ${downloadUrl}/php-${phpVersionCode}.tar.gz
wget -T 120 -t 3 -O ${phpPath}/php-${phpVersion}.tar.gz ${downloadUrl}/php-${phpVersionCode}.tar.gz
if [ "$?" != "0" ]; then
echo -e $HR
echo "错误PHP-${phpVersion}下载失败,请检查网络是否正常。"
@@ -82,7 +82,7 @@ rm -f php-${phpVersion}.tar.gz
mv php-* src
if [ "${phpVersion}" -le "80" ]; then
wget -T 120 -O ${phpPath}/openssl-1.1.1u.tar.gz ${downloadUrl}/openssl/openssl-1.1.1u.tar.gz
wget -T 120 -t 3 -O ${phpPath}/openssl-1.1.1u.tar.gz ${downloadUrl}/openssl/openssl-1.1.1u.tar.gz
tar -zxvf openssl-1.1.1u.tar.gz
rm -f openssl-1.1.1u.tar.gz
mv openssl-1.1.1u openssl