From 1c2929cd840d82dc49f0d025397cf450ad10625b Mon Sep 17 00:00:00 2001 From: Graham Clinch Date: Tue, 9 Jan 2018 16:01:50 +0000 Subject: [PATCH] Change to a temporary directory before downloading script files, to avoid leaving junk files in the working directory (probably ~vagrant) --- plugins/provisioners/salt/bootstrap-salt.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/provisioners/salt/bootstrap-salt.sh b/plugins/provisioners/salt/bootstrap-salt.sh index 410acc24c..702aff489 100755 --- a/plugins/provisioners/salt/bootstrap-salt.sh +++ b/plugins/provisioners/salt/bootstrap-salt.sh @@ -1,5 +1,7 @@ #!/bin/sh - +cd `mktemp --directory` + # We just download the bootstrap script by default and execute that. if [ -x /usr/bin/fetch ]; then /usr/bin/fetch -o bootstrap-salt.sh https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh