Bootstrap on a temp folder like deploy
This commit is contained in:
parent
d8ba5cbb59
commit
07f5059cc6
@ -6,13 +6,12 @@ shift
|
||||
|
||||
remote_command=$(
|
||||
cat <<CMD
|
||||
[ -d ~/opt/kickstart ] && rm -rf ~/opt/kickstart
|
||||
mkdir -p ~/opt/kickstart
|
||||
cd ~/opt/kickstart
|
||||
target=\$(mktemp -d -t kickstart.XXXXX)
|
||||
mkdir -p \$target
|
||||
cd \$target
|
||||
tar xz
|
||||
echo 'PATH=~/opt/kickstart/bin:\$PATH' >> ~/.bashrc
|
||||
echo 'PATH=~/opt/kickstart/bin:\$PATH' >> ~/.bash_profile
|
||||
echo 'PATH=~/opt/kickstart/bin:\$PATH' >> ~/.zshrc
|
||||
rm -rf /usr/local/bin/kickstart
|
||||
ln -s \$target/bin/kickstart /usr/local/bin/kickstart
|
||||
CMD
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user