mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 19:35:41 +03:00
include all of usr
This commit is contained in:
@@ -63,7 +63,7 @@ func NewJavaDriver(ctx *DriverContext) Driver {
|
||||
func (d *JavaDriver) Fingerprint(cfg *config.Config, node *structs.Node) (bool, error) {
|
||||
// Only enable if we are root and cgroups are mounted when running on linux systems.
|
||||
if runtime.GOOS == "linux" && (syscall.Geteuid() != 0 || !d.cgroupsMounted(node)) {
|
||||
d.logger.Printf("[DEBUG] driver.java: must run as root user on linux, disabling")
|
||||
d.logger.Printf("[DEBUG] driver.java: root priviledges and mounted cgroups required on linux, disabling")
|
||||
return false, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user