Update of /cvsroot/devil-linux/build/scripts/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14789
Modified Files:
postfix
Log Message:
startup script did not take care of running postmap on modified db files
Index: postfix
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/scripts/postfix,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- postfix 11 Aug 2003 00:10:31 -0000 1.3
+++ postfix 12 May 2004 21:16:29 -0000 1.4
@@ -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: "
|