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

5 lines
213 B
Plaintext
Raw Normal View History

2018-03-07 18:52:40 -05:00
local hostname=${APPIMG_HOSTNAME:-"subgraph"}
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