1
0
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:
2023-05-24 19:17:41 +02:00
parent 40c24793f5
commit cbebf75b48
2 changed files with 15 additions and 2 deletions

View File

@ -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)
}

View File

@ -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
)