mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 01:50:19 +08:00
Update init_without_docker.sh
This commit is contained in:
parent
8e7c2974cf
commit
b1ab3c97d4
@ -4,9 +4,8 @@ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
|
|||||||
newpassword=$1
|
newpassword=$1
|
||||||
echo $newpassword |passwd --stdin fastuser
|
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)
|
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)
|
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
|
sed -i "s/$old_ip/$internal_ip/g" /etc/nginx/conf.d/parking.conf
|
||||||
systemctl restart nginx
|
systemctl restart nginx
|
||||||
|
Loading…
Reference in New Issue
Block a user