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