diff options
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 001bd0c58..719171d9e 100644 --- a/extra/wireshark/wireshark.install +++ b/extra/wireshark/wireshark.install @@ -1,18 +1,18 @@ post_install() { - /usr/bin/getent group wireshark >/dev/null 2>&1 || usr/sbin/groupadd -g 150 wireshark &>/dev/null + getent group wireshark >/dev/null 2>&1 || groupadd -g 150 wireshark &>/dev/null - /usr/bin/setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap + 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() { - /usr/bin/getent group wireshark >/dev/null 2>&1 || usr/sbin/groupadd -g 150 wireshark &>/dev/null + getent group wireshark >/dev/null 2>&1 || groupadd -g 150 wireshark &>/dev/null - /usr/bin/setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap + setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap } post_remove() { - if /usr/bin/getent group wireshark >/dev/null 2>&1; then - /usr/sbin/groupdel wireshark + if getent group wireshark >/dev/null 2>&1; then + groupdel wireshark fi } |