Revision 8a82096c example/hooks/linux/hostname
b/example/hooks/linux/hostname | ||
---|---|---|
43 | 43 |
;; |
44 | 44 |
esac |
45 | 45 |
|
46 |
# Some Linux distributions assign the hostname to 127.0.1.1 in order to be |
|
47 |
# resolvable to an IP address. Lets replace this if found in /etc/hosts |
|
48 |
sed -ie "s/^[[:blank:]]*127\.0\.1\.1[[:blank:]].\+$/127.0.1.1\t${instance}/" ${TARGET}/etc/hosts |
|
49 |
|
|
46 | 50 |
# execute cleanups |
47 | 51 |
cleanup |
48 | 52 |
trap - EXIT |
Also available in: Unified diff