post_install_sid: Ensure to forward root's mail to new user email
address.
This commit is contained in:
parent
8aca154d67
commit
655577d6b2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue