[5/9] amazon-ssm-agent: Remove temporary shared files

Message ID 20200416192714.25542-5-michael.tremer@ipfire.org
State Accepted
Commit 8bded835a27af820100048f6078c2cb6b37d4ad4
Headers show
Series [1/9] Config: Set some Go environment variables | expand

Commit Message

Michael Tremer April 16, 2020, 7:27 p.m. UTC
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 lfs/amazon-ssm-agent | 3 +++
 1 file changed, 3 insertions(+)

Patch

diff --git a/lfs/amazon-ssm-agent b/lfs/amazon-ssm-agent
index 4b08bd41d..68ab3dda1 100644
--- a/lfs/amazon-ssm-agent
+++ b/lfs/amazon-ssm-agent
@@ -95,6 +95,9 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	# Build
 	cd $(DIR_BUILD) && make build-linux
 
+	# Remove some temporary files (no idea why those are being created)
+	rm -rfv /usr/lib/go/pkg/linux_$(GOARCH)_shared
+
 	# Install
 	mkdir -pv /etc/amazon/ssm /usr/bin /var/lib/amazon/ssm
 	cd $(DIR_BUILD) && install -v -m 755 \