Bootstrap on a temp folder like deploy
This commit is contained in:
parent
d8ba5cbb59
commit
07f5059cc6
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user