[Oval-commits] r366 - trunk/oval-server/debian

Pavel Vinogradov blaze-guest at alioth.debian.org
Sun Sep 14 14:43:46 UTC 2008


Author: blaze-guest
Date: 2008-09-14 14:43:46 +0000 (Sun, 14 Sep 2008)
New Revision: 366

Modified:
   trunk/oval-server/debian/postinst
Log:
Create oval group if it not exist

Modified: trunk/oval-server/debian/postinst
===================================================================
--- trunk/oval-server/debian/postinst	2008-09-14 14:36:25 UTC (rev 365)
+++ trunk/oval-server/debian/postinst	2008-09-14 14:43:46 UTC (rev 366)
@@ -20,7 +20,11 @@
 
 case "$1" in
     configure)
-    	if ! getent passwd oval-server >/dev/null; then
+	if ! getent group oval > /dev/null; then
+		addgroup oval
+	fi
+	
+	if ! getent passwd oval-server >/dev/null; then
 		adduser --quiet --system --no-create-home \
 			--home /var/cache/oval-server --disabled-password \
 			--disabled-login --shell /bin/false --ingroup oval \
@@ -49,6 +53,4 @@
 
 #DEBHELPER#
 
-exit 0
-
-
+exit 0
\ No newline at end of file




More information about the Oval-commits mailing list