sudo: /usr/sbin/installer expects the root user

Refs Homebrew/brew#14629
This commit is contained in:
Ilya Kulakov
2023-11-27 01:49:38 -08:00
parent 8a821aeab8
commit ded12a84c5
4 changed files with 12 additions and 6 deletions
+4 -2
View File
@@ -44,7 +44,8 @@ cask "asix-ax88179" do
"-pkg", staged_path/"AX88179_178A_Uninstall.pkg",
"-target", "/"
],
sudo: true
sudo: true,
sudo_as_root: true
end
end
on_big_sur do
@@ -73,7 +74,8 @@ cask "asix-ax88179" do
"-pkg", staged_path/"AX88179_178A_Uninstall.pkg",
"-target", "/"
],
sudo: true
sudo: true,
sudo_as_root: true
end
end
on_monterey :or_newer do
+2 -1
View File
@@ -23,7 +23,8 @@ cask "winclone" do
"-pkg", "#{staged_path}/Uninstaller/Uninstall Winclone.pkg",
"-target", "/"
],
sudo: true
sudo: true,
sudo_as_root: true
end
uninstall signal: ["TERM", "com.twocanoes.Winclone#{version.major}"],
+2 -1
View File
@@ -25,7 +25,8 @@ cask "wireshark-chmodbpf" do
"-pkg", "#{staged_path}/Uninstall ChmodBPF.pkg",
"-target", "/"
],
sudo: true
sudo: true,
sudo_as_root: true
end
uninstall pkgutil: "org.wireshark.ChmodBPF.pkg"
+4 -2
View File
@@ -78,13 +78,15 @@ cask "wireshark" do
"-pkg", "#{staged_path}/Uninstall ChmodBPF.pkg",
"-target", "/"
],
sudo: true
sudo: true,
sudo_as_root: true
system_command "/usr/sbin/installer",
args: [
"-pkg", "#{staged_path}/Remove Wireshark from the system path.pkg",
"-target", "/"
],
sudo: true
sudo: true,
sudo_as_root: true
end
uninstall pkgutil: "org.wireshark.*"