Renames variable on bootstrap script to not confuse with deployment host target. Also, prevents escaping of variables on the script to use literal $

This commit is contained in:
Bruno Tavares 2015-09-26 00:41:58 -03:00
parent 0c7f0fe389
commit 181f40fabb

View File

@ -5,13 +5,13 @@ target=$1
shift
remote_command=$(
cat <<CMD
target=\$(mktemp -d -t kickstart.XXXXX)
mkdir -p \$target
cd \$target
cat <<\CMD
installation_folder=$(mktemp -d -t kickstart.XXXXX)
mkdir -p $installation_folder
cd $installation_folder
tar xz
rm -rf /usr/local/bin/kickstart
ln -s \$target/bin/kickstart /usr/local/bin/kickstart
ln -s $installation_folder/bin/kickstart /usr/local/bin/kickstart
CMD
)