Update Centos7-install.sh

添加搜索服务(只有安装next主题后才可用)
This commit is contained in:
PasserByJia 2018-10-05 10:02:56 +08:00 committed by GitHub
parent e4e63f4609
commit b4991e80d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -41,6 +41,16 @@ EOF
chmod 777 /usr/local/blog/admin_script/hexo-generate.sh
npm install hexo-generator-searchdb --save
cat>>/usr/local/blog/_config.yml<<EOF
search:
path: search.xml
field: post
format: html
limit: 10000
EOF
echo -e "请访问 https://www.devglan.com/online-tools/bcrypt-hash-generator 请将密码转换成bcrypt散列输入"
read -p "请输入转换后的bcrypt密码" bcrypt