[Pkg-zenoss-commits] r172 - /packages/zenoss/trunk/debian/zenoss.postinst

zack at users.alioth.debian.org zack at users.alioth.debian.org
Tue Jun 19 20:37:10 UTC 2007


Author: zack
Date: Tue Jun 19 20:37:10 2007
New Revision: 172

URL: http://svn.debian.org/wsvn/pkg-zenoss/?sc=1&rev=172
Log:
safer quoting, and one getent less

Modified:
    packages/zenoss/trunk/debian/zenoss.postinst

Modified: packages/zenoss/trunk/debian/zenoss.postinst
URL: http://svn.debian.org/wsvn/pkg-zenoss/packages/zenoss/trunk/debian/zenoss.postinst?rev=172&op=diff
==============================================================================
--- packages/zenoss/trunk/debian/zenoss.postinst (original)
+++ packages/zenoss/trunk/debian/zenoss.postinst Tue Jun 19 20:37:10 2007
@@ -40,7 +40,7 @@
     if [ -z "$dbc_dbserver" ]; then
       dbc_dbserver="localhost"
     fi
-    su - $ZENUSER -s /bin/bash -c "$(getent passwd $ZENUSER | cut -d : -f 6)/bin/zenbuild -s $dbc_dbserver -u $dbc_dbuser -p \"$dbc_dbpass\" -d $dbc_dbname"
+    su - "$ZENUSER" -s /bin/bash -c "$ZENUSERHOME/bin/zenbuild -s \"$dbc_dbserver\" -u \"$dbc_dbuser\" -p \"$dbc_dbpass\" -d \"$dbc_dbname\""
     #start the zope instance again
     dzhandle zopectl zenoss start
     #add localhost as device




More information about the Pkg-zenoss-commits mailing list