]> git.pld-linux.org Git - packages/postfix.git/commitdiff
- fixed rebuilddb command, now aliases.db is (re)generated via
authorTomek Orzechowski <orzech@pld-linux.org>
Thu, 22 Nov 2001 11:12:22 +0000 (11:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
newaliases

Changed files:
    postfix.init -> 1.11

postfix.init

index d2750f613c970c20c9bbd6be48dc21427dd7a127..237bcebb54dd776593cafe2253a910adbfc75cd6 100644 (file)
@@ -74,13 +74,14 @@ case "$1" in
        ;;
   rebuilddb)
        standard_db="access canonical relocated transport virtual"
-       extra_db=$(ls -1 /etc/mail/*.db 2> /dev/null | sed -e 's#.db$##')
+       extra_db=$(ls -1 /etc/mail/*.db 2> /dev/null | grep -v aliases.db | sed -e 's#.db$##')
        for base in $standard_db $extra_db; do
                I=$(basename "$base")
                if [ -f /etc/mail/$I ] ; then
                        /usr/sbin/postmap hash:/etc/mail/$I < /etc/mail/$I
                fi
        done
+       /usr/bin/newaliases
        ;;
   *)
        msg_Usage "$0 {start|stop|status|restart|reload|rebuilddb}"
This page took 0.033607 seconds and 4 git commands to generate.