When sudobin/custom wrapper is not available try the following in order: - sudo - doas - pkexec - su
12 lines
244 B
Go
12 lines
244 B
Go
package settings
|
|
|
|
import "fmt"
|
|
|
|
type ErrPrivilegeElevatorNotFound struct {
|
|
confValue string
|
|
}
|
|
|
|
func (e *ErrPrivilegeElevatorNotFound) Error() string {
|
|
return fmt.Sprintf("unable to find a privilege elevator, config value: %s", e.confValue)
|
|
}
|