From b1ab3c97d46901e527f050d72813d5880c0e98f6 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Wed, 7 Sep 2022 16:39:55 +0800 Subject: [PATCH] Update init_without_docker.sh --- apps/roles/fastpanel/templates/init_without_docker.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/roles/fastpanel/templates/init_without_docker.sh b/apps/roles/fastpanel/templates/init_without_docker.sh index e5486d99..f7bede51 100644 --- a/apps/roles/fastpanel/templates/init_without_docker.sh +++ b/apps/roles/fastpanel/templates/init_without_docker.sh @@ -4,9 +4,8 @@ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin newpassword=$1 echo $newpassword |passwd --stdin fastuser +sed -i '/172.17.0.1/d' /etc/nginx/conf.d/parking.conf internal_ip=$(ip addr show dev eth0|grep inet |grep eth0|cut -d/ -f1|cut -d" " -f6) -sed -i '/$internal_ip/d' /etc/nginx/conf.d/parking.conf - old_ip=$(cat /etc/nginx/conf.d/parking.conf |grep default_server|grep ssl |cut -d: -f1|cut -d" " -f2) sed -i "s/$old_ip/$internal_ip/g" /etc/nginx/conf.d/parking.conf systemctl restart nginx