# Command line arguments
ORIGIN="$1"
-COMMIT="d5fcbe970289d8246e6e3db4249a0bb6dc75cfb8"
+COMMIT="bdebb365243d1ec929936c28fe443d81bb71624a"
# Build node list
NODES="`hydra $HYDRA nodes`"
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
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