fix(nginx): system auto start nginx (#379)

systemctl enable nginx
pull/381/head
zhiwen 2021-12-02 14:01:37 +08:00 committed by GitHub
parent ecbe920c70
commit 8026f99709
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -315,7 +315,8 @@ function configure_nginx() {
cd /etc/nginx/conf.d/ && rm -f ${domain}.conf && wget -O ${domain}.conf https://raw.githubusercontent.com/wulabing/Xray_onekey/${github_branch}/config/web.conf
sed -i "s/xxx/${domain}/g" ${nginx_conf}
judge "Nginx 配置 修改"
systemctl enable nginx
systemctl restart nginx
}