Add device agent library
Provide enrollment, elevated install, posture checks, keystore, and system-tray helpers shared by the probo-agent binary. Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
@@ -35,3 +35,14 @@ func DefaultConfigDir() string {
|
||||
|
||||
return filepath.Join(programData, "Probo", "agent")
|
||||
}
|
||||
|
||||
// DefaultEnrollmentRunDir returns the runtime directory for the public
|
||||
// enrollment marker on Windows.
|
||||
func DefaultEnrollmentRunDir() string {
|
||||
programData := os.Getenv("ProgramData")
|
||||
if programData == "" {
|
||||
programData = `C:\ProgramData`
|
||||
}
|
||||
|
||||
return filepath.Join(programData, "Probo", "run")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user