From 3e8c0df21b075ca841e834757c6cc2fcb72cf281 Mon Sep 17 00:00:00 2001 From: Aaron Meihm Date: Thu, 11 Feb 2016 16:06:03 -0600 Subject: [PATCH] [minor] darwin bundle entry --- manifest.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/manifest.go b/manifest.go index 54f79c7c..3064ae37 100644 --- a/manifest.go +++ b/manifest.go @@ -298,14 +298,22 @@ var bundleEntryLinux = []BundleDictionaryEntry{ {"configuration", "/etc/mig/mig-agent.cfg", ""}, } +var bundleEntryDarwin = []BundleDictionaryEntry{ + {"mig-agent", "/sbin/mig-agent", ""}, + {"configuration", "/etc/mig/mig-agent.cfg", ""}, +} + var BundleDictionary = map[string][]BundleDictionaryEntry{ - "linux": bundleEntryLinux, + "linux": bundleEntryLinux, + "darwin": bundleEntryDarwin, } func GetHostBundle() ([]BundleDictionaryEntry, error) { switch runtime.GOOS { case "linux": return bundleEntryLinux, nil + case "darwin": + return bundleEntryDarwin, nil } return nil, fmt.Errorf("no entry for %v in bundle dictionary", runtime.GOOS) }