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