properly configure /etc/hosts

This commit is contained in:
Patrick McGuire
2021-11-01 15:27:58 -04:00
parent d7f3f349c4
commit 62076d83ae
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -16,6 +16,7 @@ set_hostname() {
echo "Setting hostname to 'birdnetpi'"
hostnamectl set-hostname birdnetpi
sed -i 's/raspberrypi/birdnetpi/g' /etc/hosts
sed -i 's/localhost$/localhost birdnetpi.local/g' /etc/hosts
fi
}
+1
View File
@@ -16,6 +16,7 @@ set_hostname() {
echo "Setting hostname to 'birdnetpi'"
hostnamectl set-hostname birdnetpi
sed -i 's/raspberrypi/birdnetpi/g' /etc/hosts
sed -i 's/localhost$/localhost birdnetpi.local/g' /etc/hosts
fi
}