mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
Make a basic executor that can be shared and fix some fingerprinting/tests
This commit is contained in:
@@ -38,8 +38,8 @@ func NewJavaDriver(ctx *DriverContext) Driver {
|
||||
|
||||
func (d *JavaDriver) Fingerprint(cfg *config.Config, node *structs.Node) (bool, error) {
|
||||
// Only enable if we are root when running on non-windows systems.
|
||||
if runtime.GOOS != "windows" && syscall.Geteuid() != 0 {
|
||||
d.logger.Printf("[DEBUG] driver.java: must run as root user, disabling")
|
||||
if runtime.GOOS == "linux" && syscall.Geteuid() != 0 {
|
||||
d.logger.Printf("[DEBUG] driver.java: must run as root user on linux, disabling")
|
||||
return false, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user