and nuke myorigin too.

ubuntu/precise
LaMont Jones 20 years ago
parent f925693350
commit 0019664568

@ -205,7 +205,7 @@ deb-src http://security.ubuntu.com/ubuntu ${STE}-security main restricted
rm -f ${ROOT}var/spool/postfix/maildrop/* rm -f ${ROOT}var/spool/postfix/maildrop/*
chroot $ROOT apt-get update || true # give them fresh lists, but don't fail chroot $ROOT apt-get update || true # give them fresh lists, but don't fail
rm ${ROOT}etc/resolv.conf ${ROOT}etc/mailname rm ${ROOT}etc/resolv.conf ${ROOT}etc/mailname
sed -i '/^myhostname/d; /^mydestination/d' ${ROOT}etc/postfix/main.cf sed -i '/^myhostname/d; /^mydestination/d; /^myorigin/d' ${ROOT}etc/postfix/main.cf
echo set postfix/destinations | chroot ${ROOT}/usr/bin/debconf-communicate postfix echo set postfix/destinations | chroot ${ROOT}/usr/bin/debconf-communicate postfix
echo set postfix/mailname | chroot ${ROOT}/usr/bin/debconf-communicate postfix echo set postfix/mailname | chroot ${ROOT}/usr/bin/debconf-communicate postfix
chroot ${ROOT} dpkg-query -W --showformat='${Package} ${Version}\n' > livecd.${FS}.manifest chroot ${ROOT} dpkg-query -W --showformat='${Package} ${Version}\n' > livecd.${FS}.manifest

Loading…
Cancel
Save