[med-svn] r11680 - trunk/packages/vista/trunk/debian

Luis Ibanez luisibanez-guest at alioth.debian.org
Tue Jul 10 04:33:33 UTC 2012


Author: luisibanez-guest
Date: 2012-07-10 04:33:33 +0000 (Tue, 10 Jul 2012)
New Revision: 11680

Added:
   trunk/packages/vista/trunk/debian/vista.postinst
Modified:
   trunk/packages/vista/trunk/debian/changelog
   trunk/packages/vista/trunk/debian/control
Log:
 Added creation of "vista" user and "vista" group.
 Copied this from the dcmtk Debian files.



Modified: trunk/packages/vista/trunk/debian/changelog
===================================================================
--- trunk/packages/vista/trunk/debian/changelog	2012-07-10 04:13:12 UTC (rev 11679)
+++ trunk/packages/vista/trunk/debian/changelog	2012-07-10 04:33:33 UTC (rev 11680)
@@ -59,5 +59,8 @@
   * debian/control:
     Added configuration of metapackage "vista", and specific package
     "vista-0.0.20121206".
+  * debian/vista.postinst:
+    Added creation of "vista" user and "vista" group. Copied this from
+    the dcmtk Debian files.
 
  -- Luis Ibanez <luis.ibanez at kitware.com>  Wed, 4 Jul 2012 17:16:45 -0500

Modified: trunk/packages/vista/trunk/debian/control
===================================================================
--- trunk/packages/vista/trunk/debian/control	2012-07-10 04:13:12 UTC (rev 11679)
+++ trunk/packages/vista/trunk/debian/control	2012-07-10 04:33:33 UTC (rev 11680)
@@ -13,7 +13,7 @@
 
 Package: vista
 Architecture: amd64 i386
-Depends: ${misc:Depends}, vista-0.0.20121206
+Depends: ${misc:Depends}, adduser, vista-0.0.20121206
 Description: metapackage for the selected version of VistA
  VistA: the Veterans Health Information Systems and Technology Architecture.
  This is an integrated health information system that was developed by

Added: trunk/packages/vista/trunk/debian/vista.postinst
===================================================================
--- trunk/packages/vista/trunk/debian/vista.postinst	                        (rev 0)
+++ trunk/packages/vista/trunk/debian/vista.postinst	2012-07-10 04:33:33 UTC (rev 11680)
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -e
+
+# Create vista user and group
+
+if ! getent passwd vista >/dev/null 2>&1; then
+    if ! getent group vista > /dev/null 2>&1; then
+	echo "Adding \`vista' group to system ..."
+	addgroup --quiet --system vista || true
+    fi
+    echo "Adding \`vista' user to system ..."
+    adduser --quiet --system --ingroup vista --home /var/lib/vista \
+	--shell /bin/sh --disabled-password vista || true
+fi
+
+chown -h -R vista:vista /var/lib/vista || true




More information about the debian-med-commit mailing list