summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydra/deploy8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/hydra/deploy b/share/hydra/deploy
index 11bd914..635515a 100755
--- a/share/hydra/deploy
+++ b/share/hydra/deploy
@@ -9,7 +9,7 @@ hydra_config_load
# Command line arguments
ORIGIN="$1"
-COMMIT="d5fcbe970289d8246e6e3db4249a0bb6dc75cfb8"
+COMMIT="bdebb365243d1ec929936c28fe443d81bb71624a"
# Build node list
NODES="`hydra $HYDRA nodes`"
@@ -24,7 +24,7 @@ for node in $NODES; do
echo "Deploying to $node..."
ssh -o ConnectTimeout=15 $node <<EOF
##### BEGIN REMOTE SCRIPT #####
- if ! which git; then
+ if ! which git &> /dev/null; then
echo "Installing git..."
sudo aptitude install git-core -y || exit 1
fi
@@ -32,8 +32,8 @@ for node in $NODES; do
if [ ! -d /usr/local/hydra ]; then
sudo git clone $ORIGIN /usr/local/hydra
( cd /usr/local/hydra ; sudo git reset --hard $COMMIT )
- sudo ln -s /usr/local/hydra/hydra /usr/local/sbin/hydra
- sudo ln -s /usr/local/hydra/hydra /usr/local/sbin/hydractl
+ sudo ln -sf /usr/local/hydra/hydra /usr/local/sbin/hydra
+ sudo ln -sf /usr/local/hydra/hydra /usr/local/sbin/hydractl
else
( cd /usr/local/hydra ; sudo git pull ; sudo git reset --hard $COMMIT )
fi