Relies on mail command without package dependency
Bug #1795762 reported by
evilhamsterman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubumirror (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The various scripts use the mail -s command to send mail in the event of failure. For example
if [ $? -ne 0 ]; then
( echo "Archive pool sync failed. Please check logs."; \
egrep '^write failed|@ERROR' $LOGFILE ) | mail -s "Ubuntu archive sync failed" $EMAIL
echo "$(date -R): Archive pool sync failed."
exit 1
fi
However the package only depends on the existence of an MTA which generally only come with the sendmail command, the mail command comes from the mailutils package.
The ubumirror package should either depend on the mailutils package or switch to using sendmail instead of mail.
tags: | added: packaging |
To post a comment you must log in.
FWIW the bsg-mailx package also supplies a compatible mail command and pulls in far fewer dependencies.