mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
Update vst-install-debian.sh
This commit is contained in:
parent
fab56e1b70
commit
171a42a65e
1 changed files with 4 additions and 0 deletions
|
@ -1627,6 +1627,10 @@ echo "== Get main ip"
|
|||
ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/)
|
||||
local_ip=$ip
|
||||
|
||||
echo "== Writing '$ip $servername' to /etc/hosts"
|
||||
sed -i "/$servername/d" /etc/hosts
|
||||
echo "$ip $servername" >> /etc/hosts
|
||||
|
||||
# Firewall configuration
|
||||
if [ "$iptables" = 'yes' ]; then
|
||||
echo "== Firewall configuration"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue