From 5169ab899e7e41038bac4b0cafea635e75063710 Mon Sep 17 00:00:00 2001 From: Geert Stappers Date: Sat, 25 Jun 2011 00:07:21 +0200 Subject: [PATCH] put temporary config file in working directory --- polystrap.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/polystrap.sh b/polystrap.sh index 8f2e64d..b051a7c 100755 --- a/polystrap.sh +++ b/polystrap.sh @@ -93,13 +93,15 @@ echo "--------------------------" [ -e "$ROOTDIR" ] && { echo "root directory still exists"; exit; } # create multistrap.conf -echo -n > /tmp/multistrap.conf +MULTISTRAPCONF=`tempfile -d . -p multistrap` +echo -n > "$MULTISTRAPCONF" while read line; do - eval echo $line >> /tmp/multistrap.conf + eval echo $line >> "$MULTISTRAPCONF" done < $PLATFORM/multistrap.conf # download and extract packages -multistrap -f /tmp/multistrap.conf +multistrap -f "$MULTISTRAPCONF" +rm -f "$MULTISTRAPCONF" # backup ldconfig and ldd mv $ROOTDIR/sbin/ldconfig $ROOTDIR/sbin/ldconfig.REAL