From c4f04a396dea31b84cf641b8e3c66184fd3f3531 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 16 Jun 2016 16:09:56 -0300 Subject: Install: move to /usr/local/share/hydra --- share/hydractl/install | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'share/hydractl') 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 -- cgit v1.2.3