From: Friedrich L. <fr...@us...> - 2004-05-12 21:13:38
|
Update of /cvsroot/devil-linux/build/scripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13957 Modified Files: Tag: rel-1-0-patches postfix Log Message: startup script did not take care of running postmap on modified db file Index: postfix =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/scripts/postfix,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -u -d -r1.3 -r1.3.2.1 --- postfix 11 Aug 2003 00:10:31 -0000 1.3 +++ postfix 12 May 2004 21:13:28 -0000 1.3.2.1 @@ -48,11 +48,14 @@ start) /etc/init.d/jail start $PACKAGE_NAME - # check if db files exist, otherwise create them + # if a db file does not exist or the corresponding file is + # newer than the db file, create the db file DBFILES="access canonical relocated transport virtual" + CFDIR=/etc/postfix for I in $DBFILES do - test -f /etc/postfix/$I.db || postmap /etc/postfix/$I + test -f ${CFDIR}/$I.db || postmap ${CFDIR}/$I + test ${CFDIR}/$I -ot ${CFDIR}/$I.db || postmap ${CFDIR}/$I done echo -n "Starting $NAME: " |