[Pkg-voip-commits] r5567 - in /mumble: tags/1.1.3-3/debian/mumble-server.postrm trunk/debian/mumble-server.postrm
the-me-guest at alioth.debian.org
the-me-guest at alioth.debian.org
Sat Apr 19 18:04:52 UTC 2008
Author: the-me-guest
Date: Sat Apr 19 18:04:52 2008
New Revision: 5567
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=5567
Log:
Thanks at pusling for his getent ..|grep -q hint.
Modified:
mumble/tags/1.1.3-3/debian/mumble-server.postrm
mumble/trunk/debian/mumble-server.postrm
Modified: mumble/tags/1.1.3-3/debian/mumble-server.postrm
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/tags/1.1.3-3/debian/mumble-server.postrm?rev=5567&op=diff
==============================================================================
--- mumble/tags/1.1.3-3/debian/mumble-server.postrm (original)
+++ mumble/tags/1.1.3-3/debian/mumble-server.postrm Sat Apr 19 18:04:52 2008
@@ -27,10 +27,10 @@
[ -f /etc/dbus-1/system.d/murmur.conf ] && rm -f /etc/dbus-1/system.d/murmur.conf
if [ -x "$(command -v deluser)" ] ; then
- if [ `getent passwd|grep ^mumble-server:` ] ; then
+ if getent passwd|grep -q ^mumble-server: ; then
deluser --quiet --system mumble-server > /dev/null || true
fi
- if [ `getent group|grep ^mumble-server:` ] ; then
+ if getent group|grep -q ^mumble-server: ; then
deluser --quiet --system --group --only-if-empty mumble-server > /dev/null || true
fi
else
Modified: mumble/trunk/debian/mumble-server.postrm
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/mumble-server.postrm?rev=5567&op=diff
==============================================================================
--- mumble/trunk/debian/mumble-server.postrm (original)
+++ mumble/trunk/debian/mumble-server.postrm Sat Apr 19 18:04:52 2008
@@ -27,10 +27,10 @@
[ -f /etc/dbus-1/system.d/murmur.conf ] && rm -f /etc/dbus-1/system.d/murmur.conf
if [ -x "$(command -v deluser)" ] ; then
- if [ `getent passwd|grep ^mumble-server:` ] ; then
+ if getent passwd|grep -q ^mumble-server: ; then
deluser --quiet --system mumble-server > /dev/null || true
fi
- if [ `getent group|grep ^mumble-server:` ] ; then
+ if getent group|grep -q ^mumble-server: ; then
deluser --quiet --system --group --only-if-empty mumble-server > /dev/null || true
fi
else
More information about the Pkg-voip-commits
mailing list