[Openvas-commits] r3255 - trunk/tools/openvas-lsc-target-preparation

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed May 6 13:12:06 CEST 2009


Author: felix
Date: 2009-05-06 13:12:02 +0200 (Wed, 06 May 2009)
New Revision: 3255

Modified:
   trunk/tools/openvas-lsc-target-preparation/Changelog
   trunk/tools/openvas-lsc-target-preparation/TODO
   trunk/tools/openvas-lsc-target-preparation/openvas-lsc-target.spec.in
Log:
* openvas-lsc-target.spec.in: Delete user when package is uninstalled.
* TODO: Todos added (what happens if user exists, expire- date?).


Modified: trunk/tools/openvas-lsc-target-preparation/Changelog
===================================================================
--- trunk/tools/openvas-lsc-target-preparation/Changelog	2009-05-06 10:37:26 UTC (rev 3254)
+++ trunk/tools/openvas-lsc-target-preparation/Changelog	2009-05-06 11:12:02 UTC (rev 3255)
@@ -1,3 +1,9 @@
+2009-05-06  Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
+	* openvas-lsc-target.spec.in: Delete user when package is uninstalled.
+	
+	* TODO: Todos added (what happens if user exists, expire- date?).
+
 2009-04-24  Felix Wolfsteller <felix.wolfsteller at intevation.de>
 
 	* README: Corrected words about suggested invocation.

Modified: trunk/tools/openvas-lsc-target-preparation/TODO
===================================================================
--- trunk/tools/openvas-lsc-target-preparation/TODO	2009-05-06 10:37:26 UTC (rev 3254)
+++ trunk/tools/openvas-lsc-target-preparation/TODO	2009-05-06 11:12:02 UTC (rev 3255)
@@ -13,3 +13,8 @@
   necessities of spec files. Perl has uuencoding built in, without
   any module dependencies (see "perldoc -f pack").
   So the ASCII blob could be de/encoded by piping it through Perl.
+
+ - Fail installation process if user exists already (useradd returns 9),
+   because when package is removed, the users home directory will be deleted.
+
+ - Set expire-date for user (configurable).
\ No newline at end of file

Modified: trunk/tools/openvas-lsc-target-preparation/openvas-lsc-target.spec.in
===================================================================
--- trunk/tools/openvas-lsc-target-preparation/openvas-lsc-target.spec.in	2009-05-06 10:37:26 UTC (rev 3254)
+++ trunk/tools/openvas-lsc-target-preparation/openvas-lsc-target.spec.in	2009-05-06 11:12:02 UTC (rev 3255)
@@ -65,7 +65,8 @@
 
 
 #%preun
-#%postun
+%postun
+userdel -f %{PubkeyBasename}
 
 %clean
 rm -f %{manifest}



More information about the Openvas-commits mailing list