diff options
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/install | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/share/hydractl/install b/share/hydractl/install index baae176..00298e3 100755 --- a/share/hydractl/install +++ b/share/hydractl/install @@ -40,24 +40,25 @@ if ! which git &> /dev/null; then 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 # Rsync version -$sudo rsync -av --delete $APP_BASE/ /usr/local/hydra/ +$sudo rsync -av --delete $APP_BASE/ /usr/local/share/hydra/ # 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'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 +$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 |