Set hostname for mesh install
This commit is contained in:
parent
c571ece021
commit
dbb4f471df
|
@ -5643,10 +5643,6 @@ function set_your_domain_name {
|
||||||
echo "$DEFAULT_DOMAIN_NAME" > /etc/hostname
|
echo "$DEFAULT_DOMAIN_NAME" > /etc/hostname
|
||||||
hostname $DEFAULT_DOMAIN_NAME
|
hostname $DEFAULT_DOMAIN_NAME
|
||||||
|
|
||||||
if [[ $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
if grep -q "127.0.1.1" /etc/hosts; then
|
if grep -q "127.0.1.1" /etc/hosts; then
|
||||||
sed -i "s/127.0.1.1.*/127.0.1.1 $DEFAULT_DOMAIN_NAME/g" /etc/hosts
|
sed -i "s/127.0.1.1.*/127.0.1.1 $DEFAULT_DOMAIN_NAME/g" /etc/hosts
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue