[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RFC: Mail to root instead of postinst messages?



Currently an package wanting to tell "you need to do something yourself,
because dpkg can't..." think the only way informing sysadmins is using echo
in postinst. This approach has it's drawbacks... 

1 a) If no interaction is required, the messages pass unnoticed.
  b) if interaction is required it halts the install requiring more work
     from the installer. Not to mention how annoiyng they are...

2    It is not guaranteed users will remeber postinst messages after the
     install process.

There is so a easy solution for important messages, I wonder why it hasn't
used yeat...

Why not just send any important messages via mail to root? mailx is already
important. Here's a small example on how it could be done:

++++

if test -x /usr/bin/mail
then mail -s "about configuring foo 1.x.y" root <<- EOF

Here is some important stuff you should to to make foo work
blahbalah
EOF
fi

++++

Riku Voipio

-- 
"One World, One Web, One Program" - Microsoft Promotional Ad
"Ein Volk, Ein Reich, Ein Fuhrer" - Adolf Hitler


Reply to: