Update vst-install-debian.sh

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

View file

@ -1633,7 +1633,7 @@ local_ip=$ip
echo "== Writing '$ip $servername' to /etc/hosts"
sed -i "/$servername/d" /etc/hosts
subdomain=$(echo "$servername" | cut -d . -f-1)
if [ "servername" != "$subdomain" ]; then
if [ "$servername" != "$subdomain" ]; then
echo "$ip $servername $subdomain" >> /etc/hosts
else
echo "$ip $servername" >> /etc/hosts