From d522713898c38d58e142092d6c5cb6fd69efe0d1 Mon Sep 17 00:00:00 2001 From: ChrisMcKenzie Date: Wed, 4 Nov 2015 16:52:47 -0800 Subject: [PATCH] fixed issue where tar can also be sent as application/content-stream content-type --- packaging/root/usr/share/dropship/init/dropship.conf | 2 +- service/dispatcher.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/root/usr/share/dropship/init/dropship.conf b/packaging/root/usr/share/dropship/init/dropship.conf index 3f57f58..bd3a4b2 100644 --- a/packaging/root/usr/share/dropship/init/dropship.conf +++ b/packaging/root/usr/share/dropship/init/dropship.conf @@ -4,5 +4,5 @@ chdir /var/lib/dropship console log script - /usr/local/bin/dropship agent --config=/etc/dropship.d/dropship.hcl + sudo -u root /usr/local/bin/dropship agent --config=/etc/dropship.d/dropship.hcl end script diff --git a/service/dispatcher.go b/service/dispatcher.go index 05cbe96..d0e1684 100644 --- a/service/dispatcher.go +++ b/service/dispatcher.go @@ -142,7 +142,7 @@ func executeCommand(c string) (string, error) { func getInstaller(contentType string) (installer.Installer, error) { switch contentType { - case "application/x-gzip": + case "application/x-gzip", "application/octet-stream": var installer installer.TarInstaller return installer, nil }