|
|
@@ -12,7 +12,7 @@
|
|
|
export PYPI='https://mirrors.aliyun.com/pypi/simple/'
|
|
|
export JIMVC_REPOSITORY_URL='https://raw.githubusercontent.com/jamesiter/JimV-C'
|
|
|
export EDITION='master'
|
|
|
-export NGINX_JIMV='curl '${JIMVC_REPOSITORY_URL}'/'${EDITION}'/misc/nginx_jimv.conf >> /etc/nginx/nginx.conf'
|
|
|
+export NGINX_JIMV_URL=${JIMVC_REPOSITORY_URL}'/'${EDITION}'/misc/nginx_jimv.conf'
|
|
|
export GENERATE_PASSWORD_SCRIPT_TMP_PATH='/tmp/gen_pswd.sh'
|
|
|
export SMTP_HOST=''
|
|
|
export SMTP_USER=''
|
|
|
@@ -172,7 +172,7 @@ function install_Nginx() {
|
|
|
chown -R www.www /var/lib/nginx
|
|
|
sed -i 's@user nginx.*$@user www;@' /etc/nginx/nginx.conf
|
|
|
sed -i '/^.*server {/,$d' /etc/nginx/nginx.conf
|
|
|
- curl ${NGINX_JIMV} >> /etc/nginx/nginx.conf
|
|
|
+ curl ${NGINX_JIMV_URL} >> /etc/nginx/nginx.conf
|
|
|
|
|
|
# 启动并使其随机启动
|
|
|
systemctl enable nginx.service
|