diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-04-08 15:12:55 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-04-08 15:12:55 -0300 |
commit | 8a41786aa2370742e30226f27e8da8a9b3f5d96a (patch) | |
tree | ab0d1a87bb137f5dd57a09544f53e190939bf05a | |
parent | dbd89651cb94cffc39950629aa67a5c9aab202b1 (diff) | |
download | hydra-8a41786aa2370742e30226f27e8da8a9b3f5d96a.tar.gz hydra-8a41786aa2370742e30226f27e8da8a9b3f5d96a.tar.bz2 |
Deploy hydra on /usr/local/bin
-rwxr-xr-x | share/hydra/deploy | 13 | ||||
-rwxr-xr-x | share/hydractl/deploy | 13 |
2 files changed, 20 insertions, 6 deletions
diff --git a/share/hydra/deploy b/share/hydra/deploy index a41040d..50b84b9 100755 --- a/share/hydra/deploy +++ b/share/hydra/deploy @@ -47,9 +47,16 @@ 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 -sf /usr/local/hydra/hydra /usr/local/sbin/hydra - sudo ln -sf /usr/local/hydra/hydra /usr/local/sbin/hydractl - sudo ln -sf /usr/local/hydra/hydras /usr/local/sbin/hydras + 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 + + # Remove from old location + # We're keep hydra on /usr/local/bin as /usr/local/sbin might + # not be available on $PATH when connecting to a remote system. + rm /usr/local/sbin/hydra + rm /usr/local/sbin/hydractl + rm /usr/local/sbin/hydras else ( cd /usr/local/hydra ; sudo git pull ; sudo git reset --hard $COMMIT ) fi diff --git a/share/hydractl/deploy b/share/hydractl/deploy index 588c9e6..3b4ae91 100755 --- a/share/hydractl/deploy +++ b/share/hydractl/deploy @@ -42,9 +42,16 @@ 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 -sf /usr/local/hydra/hydra /usr/local/sbin/hydra - $sudo ln -sf /usr/local/hydra/hydra /usr/local/sbin/hydractl - $sudo ln -sf /usr/local/hydra/hydras /usr/local/sbin/hydras + $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 + + # Remove from old location + # We're keep hydra on /usr/local/bin as /usr/local/sbin might + # not be available on $PATH when connecting to a remote system. + rm /usr/local/sbin/hydra + rm /usr/local/sbin/hydractl + rm /usr/local/sbin/hydras else ( cd /usr/local/hydra ; $sudo git pull ; $sudo git reset --hard $COMMIT ) fi |