Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (13 sloc) 396 Bytes
# Usage: ./ [host]
# The host key might change when we instantiate a new VM, so
# we remove (-R) the old host key from known_hosts
# ssh-keygen -R "${host#*@}" 2> /dev/null
tar cj . | ssh -o 'StrictHostKeyChecking no' "$host" '
rm -rf ~/chef &&
mkdir ~/chef &&
cd ~/chef &&
tar xj &&
chmod +x &&
sudo /home/app/chef/'