projects
/
grml-debootstrap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git@git.grml.org/grml-debootstrap
[grml-debootstrap.git]
/
chroot-script
diff --git
a/chroot-script
b/chroot-script
index
993b0a7
..
2be4689
100755
(executable)
--- a/
chroot-script
+++ b/
chroot-script
@@
-256,7
+256,7
@@
hosts() {
# set up /etc/network/interfaces {{{
interfaces() {
# set up /etc/network/interfaces {{{
interfaces() {
- if ! [ -r /etc/network/interfaces ] ; then
+ if ! [ -r /etc/network/interfaces ]
|| ! grep -q "auto lo" /etc/network/interfaces
; then
echo "Setting up /etc/network/interfaces"
cat >> /etc/network/interfaces << EOF
echo "Setting up /etc/network/interfaces"
cat >> /etc/network/interfaces << EOF
@@
-324,6
+324,11
@@
hostname() {
if [ -n "$HOSTNAME" ] ; then
echo "Setting hostname to ${HOSTNAME}."
echo "$HOSTNAME" > /etc/hostname
if [ -n "$HOSTNAME" ] ; then
echo "Setting hostname to ${HOSTNAME}."
echo "$HOSTNAME" > /etc/hostname
+
+ # adjust postfix configuration
+ if [ -r /etc/postfix/main.cf ] ; then
+ sed -i "s/grml/$HOSTNAME/g" /etc/postfix/main.cf
+ fi
fi
}
# }}}
fi
}
# }}}