From 18c1347c8dddc0f23027410e0f5c82c19f61e3a6 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 27 Jun 2009 15:51:20 +0200 Subject: [PATCH] aliases munging --- input/howto/new-machine.creole | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/input/howto/new-machine.creole b/input/howto/new-machine.creole index c781988..f371f56 100644 --- a/input/howto/new-machine.creole +++ b/input/howto/new-machine.creole @@ -143,6 +143,14 @@ EOF }}} * Add debian-admin@debian.org to root in /etc/aliases +{{{ + if ! egrep '^root:' /etc/aliases > /dev/null; then + echo "root: debian-admin@debian.org" >> /etc/aliases + elif ! egrep '^root:.*debian-admin@debian.org' /etc/aliases > /dev/null; then + sed -i -e 's/^root: .*/&, debian-admin@debian.org/' /etc/aliases + fi + newaliases +}}} * sane default editor {{{ -- 2.20.1