From b042aa89bede772ca7d10d6cca471c79ad661b40 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 15 Nov 2018 01:54:02 +0100 Subject: [PATCH] WIP --- all_new_2018/set_hostname_and_fqdn.sh | 3 +-- all_new_2018/setup_server.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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. -- 2.30.2