]> git.pld-linux.org Git - packages/postfix.git/commitdiff
- rebuild other db databases, too
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 7 Aug 2001 19:57:34 +0000 (19:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    postfix.init -> 1.8

postfix.init

index d1e9459ddd4d2eb46d6c4049145642afbae98fa6..752507fb4d2f9693f232854351ad875273938145 100644 (file)
@@ -75,7 +75,10 @@ case "$1" in
        exit $?
        ;;
   rebuilddb)
-        for I in access canonical relocated transport virtual; do
+       standard_db="access canonical relocated transport virtual"
+       extra_db=$(ls -1 /etc/mail/*.db 2> /dev/null | 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
This page took 0.024914 seconds and 4 git commands to generate.