Deploy kickstart on a tmp folder

This commit is contained in:
Bruno Tavares 2014-03-19 18:23:28 -03:00
parent d3e22282b6
commit 5bdabf6556

View File

@ -11,11 +11,12 @@ shift
remote_command=$(
cat <<CMD
[ -d ~/kickstart ] && rm -rf ~/kickstart
mkdir ~/kickstart
cd ~/kickstart
target=\$(mktemp -d -t kickstart.XXXXX)
mkdir -p \$target
cd \$target
tar xz
$prefix bash $debug install.sh
rm -rf \$target
CMD
)