本脚本为由宝塔官方提供,一键自动挂载硬盘至www目录
脚本内容:
yum install wget -y && wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh
其中存在交互,输入代码后会提示选择,请输入y回车表示确认(如下)
+----------------------------------------------------------------------
| Bt-WebPanel Automatic disk partitioning tool
+----------------------------------------------------------------------
| Copyright © 2015-2017 BT-SOFT(http://www.bt.cn) All rights reserved.
+----------------------------------------------------------------------
| Auto mount partition disk to /www
+----------------------------------------------------------------------
Do you want to try to mount the data disk to the /www directory?(y/n): y