post_install_sid: Ensure to forward root's mail to new user email

address.
This commit is contained in:
gardouille 2015-11-03 18:07:04 +01:00
parent 8aca154d67
commit 655577d6b2
1 changed files with 7 additions and 2 deletions

View File

@ -1271,8 +1271,8 @@ fi
###########################################################
## Outils internet (shell)
## Liste: axel - finch - irssi - postfix - weechat-curses
## Internet tools for shell
## Liste: axel - finch - postfix - weechat-curses
## Désactivé: irssi
###########################################################
###### Pré-configuration
@ -1283,6 +1283,11 @@ fi
aptins "Outils internet (shell)" axel finch postfix weechat-curses
###### Post-configuration
## Ensure to forward root's mails to $new_user_mail
if [ ! "$(grep "root: ${new_user_mail}" /etc/aliases)" ]; then
sed "s/^root:.*/root: ${new_user_mail}/" /etc/aliases
newaliases
fi
###### Information pour l'utilisateur final
cat >> "${INFORMATION}" << EOF