summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-05-29 16:45:15 -0400
committerAndrew Cady <d@jerkface.net>2020-05-29 16:45:15 -0400
commitaecf0c25de6fb2154105ed2de433e6dc299e0f15 (patch)
treed8823be9c164b8c8376d23ffbb45d28478b31a6e
parentc9b5dab543741cf68763da816115f7d34d75d693 (diff)
set hostname & silence sudo warning
-rw-r--r--patchroot.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/patchroot.sh b/patchroot.sh
index 8bd3269..2345f77 100644
--- a/patchroot.sh
+++ b/patchroot.sh
@@ -1,5 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2echo samizdat > /etc/hostname 2hostname=adam
3echo $hostname > /etc/hostname
4sed -i -e 's/\blocalhost\b/& '"$hostname"'/' /etc/hosts
3 5
4. /etc/os-release 6. /etc/os-release
5 7