From: Christian Heller Date: Thu, 15 Nov 2018 00:54:02 +0000 (+0100) Subject: WIP X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/static/%7B%7Bprefix%7D%7D/edit?a=commitdiff_plain;h=b042aa89bede772ca7d10d6cca471c79ad661b40;p=config WIP --- diff --git a/all_new_2018/set_hostname_and_fqdn.sh b/all_new_2018/set_hostname_and_fqdn.sh index f39a359..3f95590 100755 --- a/all_new_2018/set_hostname_and_fqdn.sh +++ b/all_new_2018/set_hostname_and_fqdn.sh @@ -18,7 +18,6 @@ if [ "${hostname}" = "" ]; then echo "Need hostname as argument." false fi - echo "${hostname}" > /etc/hostname hostname "${hostname}" @@ -39,8 +38,8 @@ for ip in $(hostname -I); do continue fi fi - echo 'SETTING' $ip final_ip="${ip}" done + echo "127.0.0.1 localhost.localdomain localhost" > /etc/hosts echo "${final_ip} ${fqdn} ${hostname}" >> /etc/hosts diff --git a/all_new_2018/setup_server.sh b/all_new_2018/setup_server.sh index 7778b9a..55635f7 100755 --- a/all_new_2018/setup_server.sh +++ b/all_new_2018/setup_server.sh @@ -19,7 +19,7 @@ apt update apt -y dist-upgrade # Set Berlin localtime. -#ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime +ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime # If we have not yet set the shell for user plom, ensure it here. This # is mostly for convenience.