aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-16 16:09:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-16 16:09:56 -0300
commitc4f04a396dea31b84cf641b8e3c66184fd3f3531 (patch)
treeda9617948571acb221524ec8928a03085ca306f6 /share/hydractl
parent2796dfabc22e9e8fa5410b7fabead24f93f81054 (diff)
downloadhydra-c4f04a396dea31b84cf641b8e3c66184fd3f3531.tar.gz
hydra-c4f04a396dea31b84cf641b8e3c66184fd3f3531.tar.bz2
Install: move to /usr/local/share/hydra
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/install25
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