Add a -maintainers alias file.
The current scripting generates aliases of the form foo-owner@fedoraproject.org. But this conflicts with our messaging which says that the project "owns" packages and people "maintain" them. Plus, "owner" is singular while we really want to have more than one maintainer. This simply adds a second alias file generated from the original file.
This commit is contained in:
parent
93e93e63c9
commit
73de9829d0
2 changed files with 11 additions and 1 deletions
|
@ -399,7 +399,7 @@ relay_domains = $mydestination fedora.phx.redhat.com
|
|||
#
|
||||
#alias_maps = dbm:/etc/aliases
|
||||
alias_maps = hash:/etc/aliases
|
||||
alias_maps = hash:/etc/aliases, hash:/etc/postfix/package-owner
|
||||
alias_maps = hash:/etc/aliases, hash:/etc/postfix/package-owner, hash:/etc/postfix/package-maintainers
|
||||
#alias_maps = hash:/etc/aliases, nis:mail.aliases
|
||||
#alias_maps = netinfo:/aliases
|
||||
|
||||
|
|
|
@ -1,15 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
output=`mktemp`
|
||||
moutput=`mktemp`
|
||||
dest=/etc/postfix/package-owner
|
||||
mdest=/etc/postfix/package-maintainers
|
||||
/usr/local/bin/owner-email.py >> $output
|
||||
if [ $? != 0 ]; then
|
||||
echo "error creating owner-alias file" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sed -e 's/-owner: /-maintainers: /' $output > $moutput
|
||||
|
||||
cp $output $dest
|
||||
chmod +r $output
|
||||
mv $output $dest
|
||||
/usr/sbin/restorecon /etc/postfix/package-owner
|
||||
/usr/sbin/postalias /etc/postfix/package-owner
|
||||
|
||||
cp $moutput $mdest
|
||||
chmod +r $moutput
|
||||
mv $moutput $mdest
|
||||
/usr/sbin/restorecon /etc/postfix/package-maintainers
|
||||
/usr/sbin/postalias /etc/postfix/package-maintainers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue