wireshark.rb: refactor uninstall (#32259)

* wireshark.rb: refactor uninstall

* Update wireshark.rb
This commit is contained in:
Vítor Galvão 2017-04-15 01:43:36 +01:00 committed by Markus Reiter
parent dc42fd1be9
commit bf56084828
1 changed files with 13 additions and 6 deletions

View File

@ -23,12 +23,19 @@ cask 'wireshark' do
sudo: true
end
uninstall script: {
executable: '/usr/sbin/dseditgroup',
args: ['-o', 'delete', 'access_bpf'],
sudo: true,
},
pkgutil: 'org.wireshark.*',
uninstall_preflight do
set_permissions '/Library/Application Support/Wireshark', '0755'
system_command '/usr/sbin/dseditgroup',
args: [
'-o',
'delete',
'access_bpf',
],
sudo: true
end
uninstall pkgutil: 'org.wireshark.*',
delete: [
'/usr/local/bin/capinfos',
'/usr/local/bin/dftest',