diff options
author | Andrew Cady <d@jerkface.net> | 2020-05-29 16:45:15 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-05-29 16:45:15 -0400 |
commit | aecf0c25de6fb2154105ed2de433e6dc299e0f15 (patch) | |
tree | d8823be9c164b8c8376d23ffbb45d28478b31a6e | |
parent | c9b5dab543741cf68763da816115f7d34d75d693 (diff) |
set hostname & silence sudo warning
-rw-r--r-- | patchroot.sh | 4 |
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 |
2 | echo samizdat > /etc/hostname | 2 | hostname=adam |
3 | echo $hostname > /etc/hostname | ||
4 | sed -i -e 's/\blocalhost\b/& '"$hostname"'/' /etc/hosts | ||
3 | 5 | ||
4 | . /etc/os-release | 6 | . /etc/os-release |
5 | 7 | ||