1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 20:10:08 +02:00

🐛 Restoring Homebrew permissions uses admin group now

This commit is contained in:
2022-03-29 14:14:39 +02:00
parent f072ceae37
commit 066d7bc217

View File

@ -41,8 +41,8 @@ class Actions {
"\(Paths.brew) services stop dnsmasq", "\(Paths.brew) services stop dnsmasq",
] ]
var cellarCommands = [ var cellarCommands = [
"chown -R \(Paths.whoami):staff \(Paths.cellarPath)/nginx", "chown -R \(Paths.whoami):admin \(Paths.cellarPath)/nginx",
"chown -R \(Paths.whoami):staff \(Paths.cellarPath)/dnsmasq" "chown -R \(Paths.whoami):admin \(Paths.cellarPath)/dnsmasq"
] ]
PhpEnv.shared.availablePhpVersions.forEach { version in PhpEnv.shared.availablePhpVersions.forEach { version in
@ -50,7 +50,7 @@ class Actions {
? "php" ? "php"
: "php@\(version)" : "php@\(version)"
servicesCommands.append("\(Paths.brew) services stop \(formula)") servicesCommands.append("\(Paths.brew) services stop \(formula)")
cellarCommands.append("chown -R \(Paths.whoami):staff \(Paths.cellarPath)/\(formula)") cellarCommands.append("chown -R \(Paths.whoami):admin \(Paths.cellarPath)/\(formula)")
} }
let script = let script =