aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-11-14 10:51:21 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-11-14 10:51:21 -0200
commitd5832da2a88b6afb8aa964a7b787368853119592 (patch)
tree7e1d328f9307bab67dbc6982e2ddb6a1c77446f8
parentd5fcbe970289d8246e6e3db4249a0bb6dc75cfb8 (diff)
downloadhydra-d5832da2a88b6afb8aa964a7b787368853119592.tar.gz
hydra-d5832da2a88b6afb8aa964a7b787368853119592.tar.bz2
Minor fixes at deploy task
-rwxr-xr-xshare/hydra/deploy6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/hydra/deploy b/share/hydra/deploy
index 93f2b51..bf3f312 100755
--- a/share/hydra/deploy
+++ b/share/hydra/deploy
@@ -9,7 +9,7 @@ hydra_config_load
# Command line arguments
ORIGIN="$1"
-COMMIT="1c975d65f221eb78baf2808893c059091740da2a"
+COMMIT="d5fcbe970289d8246e6e3db4249a0bb6dc75cfb8"
# Build node list
NODES="`hydra $HYDRA nodes`"
@@ -26,11 +26,11 @@ for node in $NODES; do
##### BEGIN REMOTE SCRIPT #####
if [ ! -d /usr/local/hydra ]; then
sudo git clone $ORIGIN /usr/local/hydra
- ( cd /usr/local/hydra ; git reset --hard $COMMIT )
+ ( 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
else
- ( cd /usr/local/hydra ; sudo git pull ; git reset --hard $COMMIT )
+ ( cd /usr/local/hydra ; sudo git pull ; sudo git reset --hard $COMMIT )
fi
##### END REMOTE SCRIPT #######
EOF