wireshark.rb: refactor uninstall (#32259)
* wireshark.rb: refactor uninstall * Update wireshark.rb
This commit is contained in:
parent
dc42fd1be9
commit
bf56084828
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue