[csw-devel] SF.net SVN: gar:[11650] csw/mgar/pkg/openldap/trunk/files/CSWoldap. postinstall

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Wed Nov 17 17:53:37 CET 2010


Revision: 11650
          http://gar.svn.sourceforge.net/gar/?rev=11650&view=rev
Author:   dmichelsen
Date:     2010-11-17 16:53:36 +0000 (Wed, 17 Nov 2010)

Log Message:
-----------
openldap: Make sure log directory exists

Modified Paths:
--------------
    csw/mgar/pkg/openldap/trunk/files/CSWoldap.postinstall

Modified: csw/mgar/pkg/openldap/trunk/files/CSWoldap.postinstall
===================================================================
--- csw/mgar/pkg/openldap/trunk/files/CSWoldap.postinstall	2010-11-17 16:49:39 UTC (rev 11649)
+++ csw/mgar/pkg/openldap/trunk/files/CSWoldap.postinstall	2010-11-17 16:53:36 UTC (rev 11650)
@@ -7,6 +7,7 @@
 # Build log file name
 installdir=${BASEDIR}@localstatedir@/openldap
 installlog=${installdir}/install-`date '+%Y%m%d%H%M%S'`
+mkdir -p ${installdir}
 
 # Upgrade and verify bdb database files for openldap.
 #
@@ -16,7 +17,6 @@
         cd ${BASEDIR}$DB_HOME
 
         # Update the database environment to the new value
-	mkdir -p ${installdir}
         echo "Running db_recover on $DB_HOME" >>$installlog
         chroot $PKG_INSTALL_ROOT @bdbdir@/bin/db_recover -h $DB_HOME >>$installlog 2>&1
 


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