CVS: moonbase/mail/exim4 POST_INSTALL,1.2,1.3
Terry Chan
tchan at lunar-linux.org
Sun Nov 16 18:37:19 GMT 2003
Update of /var/cvs/lunar/moonbase/mail/exim4
In directory dbguin.lunar-linux.org:/tmp/cvs-serv13492
Modified Files:
POST_INSTALL
Log Message:
Added a test to see if the exim3 conf file has already been backed up. If
it has then we don't need to convert it to exim4 again.
Index: POST_INSTALL
===================================================================
RCS file: /var/cvs/lunar/moonbase/mail/exim4/POST_INSTALL,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- POST_INSTALL 11 Nov 2003 04:24:34 -0000 1.2
+++ POST_INSTALL 16 Nov 2003 18:37:17 -0000 1.3
@@ -12,7 +12,11 @@
;;
esac
-EXIM4_ARCH=`$SOURCE_DIRECTORY/scripts/arch-type` &&
-cat /etc/exim.conf | $SOURCE_DIRECTORY/build-Linux-${EXIM4_ARCH}/convert4r4 > exim.conf &&
-mv /etc/exim.conf /etc/exim.conf.3 &&
-mv exim.conf /etc/exim.conf
+# if the exim3 conf file has already been backed up then we probably don't
+# need to convert it again
+if [ ! -e /etc/exim.conf.3 ] ; then
+ EXIM4_ARCH=`$SOURCE_DIRECTORY/scripts/arch-type` &&
+ cat /etc/exim.conf | $SOURCE_DIRECTORY/build-Linux-${EXIM4_ARCH}/convert4r4 > exim.conf &&
+ mv /etc/exim.conf /etc/exim.conf.3 &&
+ mv exim.conf /etc/exim.conf
+fi
More information about the Lunar-commits
mailing list