Deprecate /etc/hosts config

This commit is contained in:
Alexandre CATTEAU 2022-05-14 22:25:48 +02:00
parent cdd9be6aae
commit 12a4816c0b

View File

@ -12,7 +12,7 @@
init() {
echo "Starting initialization"
echo $fqdn > /etc/hostname
sed -i -e "s/$default_hostname/$fqdn $hostname/g" /etc/hosts
#sed -i -e "s/$default_hostname/$fqdn $hostname/g" /etc/hosts
localectl set-keymap $keymap
timedatectl set-timezone $timezone
systemctl disable apt-daily-upgrade.timer
@ -75,8 +75,8 @@ fi
run_directory_path=$(pwd)
# Set parameters
default_hostname='orangepizero'
hostname='pi2'
#default_hostname='orangepizero'
#hostname='pi2'
fqdn='pi2.jab.kto.black'
keymap='fr'
timezone='Europe/Paris'