diff options
author | root <root@rshg054.dnsready.net> | 2012-07-31 00:02:30 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-07-31 00:02:30 +0000 |
commit | 5b3474881a154216b47c6e154552ee5f9c68c509 (patch) | |
tree | 098f24750e89f88b3c80ded4579a44928bae1b45 /extra/wireshark/wireshark.install | |
parent | 4982c269b318734d01ad30c6592fbb73565ceb12 (diff) |
Tue Jul 31 00:02:29 UTC 2012
Diffstat (limited to 'extra/wireshark/wireshark.install')
-rw-r--r-- | extra/wireshark/wireshark.install | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/extra/wireshark/wireshark.install b/extra/wireshark/wireshark.install index 6585ba272..69adcc4bc 100644 --- a/extra/wireshark/wireshark.install +++ b/extra/wireshark/wireshark.install @@ -1,18 +1,18 @@ post_install() { - getent group wireshark >/dev/null 2>&1 || usr/sbin/groupadd -g 150 wireshark &>/dev/null + /usr/bin/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 + /usr/sbin/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" } post_upgrade() { - getent group wireshark >/dev/null 2>&1 || usr/sbin/groupadd -g 150 wireshark &>/dev/null + /usr/bin/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 + /usr/sbin/setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap } post_remove() { - if getent group wireshark >/dev/null 2>&1; then - groupdel wireshark + if /usr/bin/getent group wireshark >/dev/null 2>&1; then + /usr/sbin/groupdel wireshark fi } |