mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-06 19:40:08 +02:00
🐛 Fix error message, check sbin folder ownership
This commit is contained in:
@ -69,7 +69,20 @@ class BrewPermissionFixer {
|
||||
path: binaryPath
|
||||
)
|
||||
|
||||
Log.warn("\(formula) is owned by root")
|
||||
Log.warn("\(formula) is owned by root (bin folder)")
|
||||
|
||||
broken.append(borked)
|
||||
}
|
||||
|
||||
let serverBinaryPath = "\(Paths.optPath)/\(realFormula)/sbin"
|
||||
|
||||
if isOwnedByRoot(path: serverBinaryPath) {
|
||||
let borked = DueOwnershipFormula(
|
||||
formula: realFormula,
|
||||
path: serverBinaryPath
|
||||
)
|
||||
|
||||
Log.warn("\(formula) is owned by root (sbin folder)")
|
||||
|
||||
broken.append(borked)
|
||||
}
|
||||
|
@ -293,7 +293,7 @@ struct PhpFormulaeView: View {
|
||||
self.presentErrorAlert(
|
||||
title: "phpman.failures.uninstall.title".localized,
|
||||
description: "phpman.failures.uninstall.desc".localized(
|
||||
"brew uninstall \(formula) --force"
|
||||
"brew uninstall \(formula.name) --force"
|
||||
),
|
||||
button: "generic.ok".localized
|
||||
)
|
||||
|
Reference in New Issue
Block a user