summaryrefslogtreecommitdiff
path: root/network_config
diff options
context:
space:
mode:
Diffstat (limited to 'network_config')
-rw-r--r--network_config2
1 files changed, 2 insertions, 0 deletions
diff --git a/network_config b/network_config
index e1233f1..c80eac5 100644
--- a/network_config
+++ b/network_config
@@ -3,6 +3,8 @@
sudo hostnamectl set-hostname $1
+sudo sed -i "/127.0.1.1/s/.*/127.0.1.1 $1/" /etc/hosts
+
sudo bash -c "cat > /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg << EOF
network: {config: disabled}
EOF"