Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
flucout committed Nov 7, 2024
1 parent ba7e07f commit a929080
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions public/install/install_6.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,44 @@ if [ "${is64bit}" != '64' ];then
exit 1
fi

Ready_Check(){
WWW_DISK_SPACE=$(df |grep /www|awk '{print $4}')
ROOT_DISK_SPACE=$(df |grep /$|awk '{print $4}')

if [ "${ROOT_DISK_SPACE}" -le 412000 ];then
df -h
echo -e "系统盘剩余空间不足400M 无法继续安装宝塔面板!"
echo -e "请尝试清理磁盘空间后再重新进行安装"
exit 1
fi
if [ "${WWW_DISK_SPACE}" ] && [ "${WWW_DISK_SPACE}" -le 412000 ] ;then
echo -e "/www盘剩余空间不足400M 无法继续安装宝塔面板!"
echo -e "请尝试清理磁盘空间后再重新进行安装"
exit 1
fi

ROOT_DISK_INODE=$(df -i|grep /$|awk '{print $2}')
if [ "${ROOT_DISK_INODE}" != "0" ];then
ROOT_DISK_INODE_FREE=$(df -i|grep /$|awk '{print $4}')
if [ "${ROOT_DISK_INODE_FREE}" -le 1000 ];then
echo -e "系统盘剩余inodes空间不足1000,无法继续安装!"
echo -e "请尝试清理磁盘空间后再重新进行安装"
exit 1
fi
fi

WWW_DISK_INODE==$(df -i|grep /www|awk '{print $2}')
if [ "${WWW_DISK_INODE}" ] && [ "${WWW_DISK_INODE}" != "0" ] ;then
WWW_DISK_INODE_FREE=$(df -i|grep /www|awk '{print $4}')
if [ "${WWW_DISK_INODE_FREE}" ] && [ "${WWW_DISK_INODE_FREE}" -le 1000 ] ;then
echo -e "/www盘剩余inodes空间不足1000, 无法继续安装!"
echo -e "请尝试清理磁盘空间后再重新进行安装"
exit 1
fi
fi
}


Centos6Check=$(cat /etc/redhat-release | grep ' 6.' | grep -iE 'centos|Red Hat')
if [ "${Centos6Check}" ];then
echo "Centos6不支持安装宝塔面板,请更换Centos7/8安装宝塔面板"
Expand Down Expand Up @@ -1100,6 +1138,7 @@ Setup_Count(){
echo /www > /var/bt_setupPath.conf
}
Install_Main(){
Ready_Check
#Set_Ssl
startTime=`date +%s`
Lock_Clear
Expand Down
Binary file modified public/install/src/panel6.zip
Binary file not shown.
Binary file modified public/install/update/LinuxPanel-9.2.0.zip
Binary file not shown.

0 comments on commit a929080

Please sign in to comment.