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

feat: 优化部分软件多线程编译参数

This commit is contained in:
耗子
2023-11-21 11:13:14 +08:00
parent bb9f629b8e
commit b4ea470099
9 changed files with 110 additions and 53 deletions

View File

@@ -25,6 +25,9 @@ setupPath="/www"
pureftpdPath="${setupPath}/server/pure-ftpd"
pureftpdVersion="1.0.50"
source ${setupPath}/panel/scripts/calculate_j.sh
j=$(calculate_j)
# 准备安装目录
rm -rf ${pureftpdPath}
mkdir -p ${pureftpdPath}
@@ -53,7 +56,7 @@ if [ "$?" != "0" ]; then
exit 1
fi
make
make "-j${j}"
if [ "$?" != "0" ]; then
echo -e $HR
echo "错误Pure-Ftpd-${pureftpdVersion}编译失败,请截图错误信息寻求帮助。"

View File

@@ -25,6 +25,9 @@ setupPath="/www"
pureftpdPath="${setupPath}/server/pure-ftpd"
pureftpdVersion="1.0.50"
source ${setupPath}/panel/scripts/calculate_j.sh
j=$(calculate_j)
# 准备安装目录
cp ${pureftpdPath}/etc/pureftpd.passwd /tmp/pureftpd.passwd
cp ${pureftpdPath}/etc/pureftpd.pdb /tmp/pureftpd.pdb
@@ -57,7 +60,7 @@ if [ "$?" != "0" ]; then
exit 1
fi
make
make "-j${j}"
if [ "$?" != "0" ]; then
echo -e $HR
echo "错误Pure-Ftpd-${pureftpdVersion}编译失败,请截图错误信息寻求帮助。"