[csw-devel] SF.net SVN: gar:[12079] csw/mgar/pkg/exim/branches/dir-loc-fixes/files/ CSWexim.preinstall

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Fri Dec 24 14:43:41 CET 2010


Revision: 12079
          http://gar.svn.sourceforge.net/gar/?rev=12079&view=rev
Author:   bdwalton
Date:     2010-12-24 13:43:40 +0000 (Fri, 24 Dec 2010)

Log Message:
-----------
exim/branches/dir-loc-fixes: further tweaking of the preinstall migration logic

Modified Paths:
--------------
    csw/mgar/pkg/exim/branches/dir-loc-fixes/files/CSWexim.preinstall

Modified: csw/mgar/pkg/exim/branches/dir-loc-fixes/files/CSWexim.preinstall
===================================================================
--- csw/mgar/pkg/exim/branches/dir-loc-fixes/files/CSWexim.preinstall	2010-12-24 01:24:46 UTC (rev 12078)
+++ csw/mgar/pkg/exim/branches/dir-loc-fixes/files/CSWexim.preinstall	2010-12-24 13:43:40 UTC (rev 12079)
@@ -2,22 +2,22 @@
 
 PIR=${PKG_INSTALL_ROOT:-}
 SPOOLOLD=${PIR}/opt/csw/var/spool/exim
-SPOOLNEW=${PIR}/var/opt/csw/spool/exim
+SPOOLNEW=${PIR}/var/opt/csw/spool
 LOGOLD=${PIR}/opt/csw/var/log/exim
-LOGNEW=${PIR}/var/opt/csw/log/exim
+LOGNEW=${PIR}/var/opt/csw/log
 COPY="cp -pR"
 
-if [ -d "${SPOOLOLD}/" -a ! -d "${SPOOLNEW}/db" ]; then
+if [ -d "${SPOOLOLD}/" -a ! -d "${SPOOLNEW}/exim" ]; then
     echo "Transferring existing spool files to new location..."
-    $COPY "${SPOOLOLD}/*" "${SPOOLNEW}/"
+    $COPY "${SPOOLOLD}" "${SPOOLNEW}"
 else
     echo "Looks like the new spool directory is in use already."
     echo "Not touching anything."
 fi
 
-if [ -d "${LOGOLD}" -a ! -f "${LOGNEW}/mainlog" ]; then
+if [ -d "${LOGOLD}" -a ! -f "${LOGNEW}/exim" ]; then
     echo "Transferring existing log files to new location..."
-    $COPY "${LOGOLD}/*" "${LOGNEW}/"
+    $COPY "${LOGOLD}" "${LOGNEW}"
 else
     echo "Looks like the new log directory is in use already."
     echo "Not touching anything."


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list