[arch-commits] Commit in wireshark/trunk (wireshark.install)

Ionut Biru ibiru at archlinux.org
Mon Nov 29 17:00:58 UTC 2010


    Date: Monday, November 29, 2010 @ 12:00:57
  Author: ibiru
Revision: 101586

remove groupmod, that cause users to be kicked out from wireshark group on each update

Modified:
  wireshark/trunk/wireshark.install

-------------------+
 wireshark.install |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Modified: wireshark.install
===================================================================
--- wireshark.install	2010-11-29 16:50:51 UTC (rev 101585)
+++ wireshark.install	2010-11-29 17:00:57 UTC (rev 101586)
@@ -1,9 +1,6 @@
 post_install() {
-    if getent group wireshark >/dev/null 2>&1; then
-        groupmod -g 150 wireshark &>/dev/null
-    else
-        groupadd -g 150 wireshark &>/dev/null
-    fi
+    getent group wireshark >/dev/null 2>&1 ||  usr/sbin/groupadd -g 150 wireshark &>/dev/null
+
     setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap
     echo "NOTE: To run wireshark as normal user you have to add yourself into wireshark group"
 }




More information about the arch-commits mailing list