[Openvas-commits] r5490 - trunk/openvas-packaging/openvas-plugins/debian/trunk/debian

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Oct 12 12:31:45 CEST 2009


Author: waja
Date: 2009-10-12 12:31:44 +0200 (Mon, 12 Oct 2009)
New Revision: 5490

Modified:
   trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/changelog
   trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-base.preinst
Log:
remove old plugin dirs

Modified: trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/changelog
===================================================================
--- trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/changelog	2009-10-12 09:41:53 UTC (rev 5489)
+++ trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/changelog	2009-10-12 10:31:44 UTC (rev 5490)
@@ -3,6 +3,7 @@
   * Move Maintainers scripts to openvas-plugins-base
   * Also consider /var/openvas/plugins as deprecated plugins dir in Maintainers
     scripts
+  * Remove deprecated plugin dirs via openvas-plugins-base.preinst
 
  -- Jan Wagner <waja at cyconet.org>  Sun, 11 Oct 2009 20:23:34 +0200
 

Modified: trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-base.preinst
===================================================================
--- trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-base.preinst	2009-10-12 09:41:53 UTC (rev 5489)
+++ trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-base.preinst	2009-10-12 10:31:44 UTC (rev 5490)
@@ -31,7 +31,12 @@
 			fi
 		done
 
-		echo ".done"
+		echo ". done"
+
+		if [ $OPLUGINDIR != "/usr/lib/openvas/plugins/" ]; then
+			echo -n "Removing directory $OPLUGINDIR ..."
+			rmdir $OPLUGINDIR && echo ". done"
+		fi
 	fi
 done
 



More information about the Openvas-commits mailing list