From 6c3a8ac62d52ca7d8fe8caf1e0d6db1b5c02d264 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Thu, 18 Oct 2012 22:25:21 +0100 Subject: [PATCH] Remove the temporary directory code. --- bootstrap-salt-minion.sh | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/bootstrap-salt-minion.sh b/bootstrap-salt-minion.sh index f321c91..e9c660e 100755 --- a/bootstrap-salt-minion.sh +++ b/bootstrap-salt-minion.sh @@ -77,19 +77,6 @@ if [ $(whoami) != "root" ] ; then exit 1 fi -# Create a temporary directory used for any temp files created -TMPDIR="/tmp/salty-temp" -if [ ! -d $TMPDIR ]; then - echo " * Creating temporary directory ${TMPDIR} " - mkdir $TMPDIR -fi - -# Store current directory -STORED_PWD=$(pwd) -# Change to temp directory -cd $TMPDIR -# When the script exits, change to the initial directory. -trap "cd $STORED_PWD" EXIT # Define our logging file and pipe paths LOGFILE="/tmp/$(basename $0 | sed s/.sh/.log/g )"