mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Update vst-install-debian.sh
This commit is contained in:
parent
d0a77cf3f6
commit
ae81474f8e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue