Sign in
apache
/
geode-native
/
3c358a35de4aee89f691d5b129e2ac9651c5b28f
/
.
/
packer
/
ubuntu
/
files
/
usr
/
local
/
bin
/
update-hosts.sh
blob: 7971a923a384d31f0be983558d2b57666a94a864 [
file
] [
log
] [
blame
]
#!/bin/bash
# add hostname to /etc/hosts if not set
if
(!
getent hosts
`hostname`
>/
dev
/
null
);
then
echo
`hostname -I`
`hostname`
>>
/
etc
/
hosts
fi