Update auto.sh

master
呓喵酱 5 years ago committed by GitHub
parent b8d174d9b6
commit 050ee5ad50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      auto.sh

@ -1,5 +1,9 @@
#!/bin/bash
echo Detecting system version..
cat /etc/redhat-release
read -t 300 -p "请输入你的域名:" domain
read -t 300 -p "请输入你的邮箱(用于申请ssl证书):" email
read -t 300 -p "请设定你的数据库root密码(务必牢记):" dbpasswd
#yum -y update
yum -y install nginx
systemctl start nginx
@ -16,6 +20,7 @@ systemctl restart php-fpm
systemctl enable php-fpm
cd /etc/nginx
wget https://yimian-setup.obs.myhwclouds.com/std-conf/nginx.conf -O nginx.conf
sed 's/your_domain/$domain/g' nginx.conf
cd /etc/php-fpm.d
wget https://yimian-setup.obs.myhwclouds.com/std-conf/www.conf -O www.conf
cd /etc

Loading…
Cancel
Save