diff options
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/deploy | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/share/hydractl/deploy b/share/hydractl/deploy index 969a557..5dc188a 100755 --- a/share/hydractl/deploy +++ b/share/hydractl/deploy @@ -42,16 +42,18 @@ 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/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. - $sudo rm /usr/local/sbin/hydra - $sudo rm /usr/local/sbin/hydractl - $sudo rm /usr/local/sbin/hydras else ( cd /usr/local/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 + +# 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. +$sudo rm -f /usr/local/sbin/hydra +$sudo rm -f /usr/local/sbin/hydractl +$sudo rm -f /usr/local/sbin/hydras |