diff options
Diffstat (limited to 'share/hydra/install')
-rwxr-xr-x | share/hydra/install | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/share/hydra/install b/share/hydra/install index 00154b7..46fbb72 100755 --- a/share/hydra/install +++ b/share/hydra/install @@ -43,7 +43,7 @@ for node in $NODES; do echo "Installing to $node..." # Rsync version - rsync -rltDv --no-perms --delete --rsync-path "sudo rsync" $APP_BASE/ $node:/usr/local/hydra/ + rsync -rltDv --no-perms --delete --rsync-path "sudo rsync" $APP_BASE/ $node:/usr/local/share/hydra/ $HYDRA_CONNECT $node <<EOF ##### BEGIN REMOTE SCRIPT ##### @@ -54,24 +54,25 @@ for node in $NODES; do fi # Git version - #if [ ! -d /usr/local/hydra ]; then - # sudo git clone $ORIGIN /usr/local/hydra - # ( cd /usr/local/hydra ; sudo git reset --hard $COMMIT ) + #if [ ! -d /usr/local/share/hydra ]; then + # sudo git clone $ORIGIN /usr/local/share/hydra + # ( cd /usr/local/share/hydra ; sudo git reset --hard $COMMIT ) #else - # ( cd /usr/local/hydra ; sudo git pull ; sudo git reset --hard $COMMIT ) + # ( cd /usr/local/share/hydra ; sudo git pull ; sudo git reset --hard $COMMIT ) #fi # Update symlinks - sudo ln -sf /usr/local/hydra/hydra /usr/local/bin/hydra - sudo ln -sf /usr/local/hydra/hydra /usr/local/bin/hydractl - sudo ln -sf /usr/local/hydra/hydras /usr/local/bin/hydras + sudo ln -sf /usr/local/share/hydra/hydra /usr/local/bin/hydra + sudo ln -sf /usr/local/share/hydra/hydra /usr/local/bin/hydractl + sudo ln -sf /usr/local/share/hydra/hydras /usr/local/bin/hydras - # Remove from old location + # Remove from old locations # We keep hydra on /usr/local/bin as /usr/local/sbin might # not be available on $PATH when connecting to a remote system. - sudo rm -f /usr/local/sbin/hydra - sudo rm -f /usr/local/sbin/hydractl - sudo rm -f /usr/local/sbin/hydras + sudo rm -fr /usr/local/hydra + sudo rm -f /usr/local/sbin/hydra + sudo rm -f /usr/local/sbin/hydractl + sudo rm -f /usr/local/sbin/hydras ##### END REMOTE SCRIPT ####### EOF done |