From aecf0c25de6fb2154105ed2de433e6dc299e0f15 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Fri, 29 May 2020 16:45:15 -0400 Subject: set hostname & silence sudo warning --- patchroot.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/patchroot.sh b/patchroot.sh index 8bd3269..2345f77 100644 --- a/patchroot.sh +++ b/patchroot.sh @@ -1,5 +1,7 @@ #!/bin/sh -echo samizdat > /etc/hostname +hostname=adam +echo $hostname > /etc/hostname +sed -i -e 's/\blocalhost\b/& '"$hostname"'/' /etc/hosts . /etc/os-release -- cgit v1.2.3