directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r644306 - in /directory/daemon/branches/bigbang/plugin/src/main: java/org/apache/directory/daemon/installers/deb/DebInstallerCommand.java resources/org/apache/directory/daemon/installers/deb/prerm
Date Thu, 03 Apr 2008 13:25:22 GMT
Author: pamarcelot
Date: Thu Apr  3 06:25:21 2008
New Revision: 644306

URL: http://svn.apache.org/viewvc?rev=644306&view=rev
Log:
Added a script that is executed before the removal of the Debian package. This script empties
some directories. This fixes the warning lines we had before we uninstalling apacheds.

Added:
    directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers/deb/prerm
Modified:
    directory/daemon/branches/bigbang/plugin/src/main/java/org/apache/directory/daemon/installers/deb/DebInstallerCommand.java

Modified: directory/daemon/branches/bigbang/plugin/src/main/java/org/apache/directory/daemon/installers/deb/DebInstallerCommand.java
URL: http://svn.apache.org/viewvc/directory/daemon/branches/bigbang/plugin/src/main/java/org/apache/directory/daemon/installers/deb/DebInstallerCommand.java?rev=644306&r1=644305&r2=644306&view=diff
==============================================================================
--- directory/daemon/branches/bigbang/plugin/src/main/java/org/apache/directory/daemon/installers/deb/DebInstallerCommand.java
(original)
+++ directory/daemon/branches/bigbang/plugin/src/main/java/org/apache/directory/daemon/installers/deb/DebInstallerCommand.java
Thu Apr  3 06:25:21 2008
@@ -178,6 +178,9 @@
 
             MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream(
"postinst" ),
                 new File( debDebianDirectory, "postinst" ), true );
+
+            MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream(
"prerm" ),
+                new File( debDebianDirectory, "prerm" ), true );
         }
         catch ( IOException e )
         {
@@ -188,6 +191,8 @@
         // Setting correct permission on the postinst script
         MojoHelperUtils.exec( new String[]
             { "chmod", "755", new File( debDebianDirectory, "postinst" ).toString() }, debDebianDirectory,
false );
+        MojoHelperUtils.exec( new String[]
+            { "chmod", "755", new File( debDebianDirectory, "prerm" ).toString() }, debDebianDirectory,
false );
 
         // Generating the DEB
         log.info( "Generating Debian DEB Package" );

Added: directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers/deb/prerm
URL: http://svn.apache.org/viewvc/directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers/deb/prerm?rev=644306&view=auto
==============================================================================
--- directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers/deb/prerm
(added)
+++ directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers/deb/prerm
Thu Apr  3 06:25:21 2008
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+# Emptying some directories
+rm -rf /var/lib/apacheds-${app.version}/default/partitions/*
+rm -rf /var/lib/apacheds-${app.version}/default/log/*
+rm -rf /opt/apacheds-${app.version}/bin/wrapper.log
\ No newline at end of file



Mime
View raw message