Update vst-install-debian.sh

This commit is contained in:
myvesta 2023-01-14 15:49:46 +01:00 committed by GitHub
commit 171a42a65e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"