diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-11-14 11:07:45 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-11-14 11:07:45 -0200 |
commit | bdebb365243d1ec929936c28fe443d81bb71624a (patch) | |
tree | 0a36c4a8159a6064e2d8ddeaddfcd45ca3b3c755 /share | |
parent | d5832da2a88b6afb8aa964a7b787368853119592 (diff) | |
download | hydra-bdebb365243d1ec929936c28fe443d81bb71624a.tar.gz hydra-bdebb365243d1ec929936c28fe443d81bb71624a.tar.bz2 |
Lib loading and deploy fixes
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydra/deploy | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/share/hydra/deploy b/share/hydra/deploy index bf3f312..11bd914 100755 --- a/share/hydra/deploy +++ b/share/hydra/deploy @@ -24,6 +24,11 @@ for node in $NODES; do echo "Deploying to $node..." ssh -o ConnectTimeout=15 $node <<EOF ##### BEGIN REMOTE SCRIPT ##### + if ! which git; then + echo "Installing git..." + sudo aptitude install git-core -y || exit 1 + fi + if [ ! -d /usr/local/hydra ]; then sudo git clone $ORIGIN /usr/local/hydra ( cd /usr/local/hydra ; sudo git reset --hard $COMMIT ) |