其实没啥用,水一帖
看宝塔历史版本见https://hostloc.com/thread-954664-1-1.html
- installpanel_version=7.7.0 #版本
- installpanel_admin_path_pl=False #取消入口限制
- installpanel_port=18888 #面板端口
-
- #正常安装官方最新版
- curl -sSO http://download.bt.cn/install/install_panel.sh && bash install_panel.sh
-
- #切换成自己想要的版本
- curl -sL http://download.bt.cn/install/update6.sh|sed "s/version=.*/version=${installpanel_version}/g"|bash
-
- #取消入口限制
- if [[ "${installpanel_admin_path_pl}" == "False" ]];then
- bt 11
- fi
-
- #改端口
- if [[ "${installpanel_port}" ]];then
- bt 8 <<EOF
- $installpanel_port
- EOF
- fi
-
- #安装软件(自己定制)
- #installpanel_soft=True
- if [[ "${installpanel_soft}" == "True" ]];then
- dir=/www/server/panel/install
- if [[ -f $dir/install_soft.sh ]];then
- cd $dir
- #以下是极速安装Nginx1.20 PHP7.4 Mysql5.7
- bash $dir/install_soft.sh 1 install nginx 1.20
- bash $dir/install_soft.sh 1 install php 7.4
- bash $dir/install_soft.sh 1 install mysql 5.7
- else
- echo "没找到$dir/install_soft.sh,是不是没安装宝塔或者有其他错误"
- fi
- fi
-
- bt default
复制代码
|