Bootstrap on a temp folder like deploy

This commit is contained in:
Bruno Tavares 2014-03-20 18:37:51 -03:00
parent d8ba5cbb59
commit 07f5059cc6

View File

@ -6,13 +6,12 @@ shift
remote_command=$( remote_command=$(
cat <<CMD cat <<CMD
[ -d ~/opt/kickstart ] && rm -rf ~/opt/kickstart target=\$(mktemp -d -t kickstart.XXXXX)
mkdir -p ~/opt/kickstart mkdir -p \$target
cd ~/opt/kickstart cd \$target
tar xz tar xz
echo 'PATH=~/opt/kickstart/bin:\$PATH' >> ~/.bashrc rm -rf /usr/local/bin/kickstart
echo 'PATH=~/opt/kickstart/bin:\$PATH' >> ~/.bash_profile ln -s \$target/bin/kickstart /usr/local/bin/kickstart
echo 'PATH=~/opt/kickstart/bin:\$PATH' >> ~/.zshrc
CMD CMD
) )