1
0
forked from brl/citadel
citadel/realmfs-builder/realmfs-modules/set-hostname

5 lines
214 B
Plaintext
Raw Permalink Normal View History

local hostname=${REALMFS_HOSTNAME:-"subgraph"}
2018-03-07 23:52:40 +00:00
info "Setting hostname to '$hostname' in /etc/hosts and /etc/hostname"
printf "127.0.0.1\t${hostname} localhost\n" > /etc/hosts
printf "${hostname}\n" > /etc/hostname