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:
parent
0c7f0fe389
commit
181f40fabb
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user