aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/install
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl/install')
-rwxr-xr-xshare/hydractl/install20
1 files changed, 10 insertions, 10 deletions
diff --git a/share/hydractl/install b/share/hydractl/install
index fb7f0b9..1e70180 100755
--- a/share/hydractl/install
+++ b/share/hydractl/install
@@ -33,20 +33,20 @@ if ! which git &> /dev/null; then
fi
# Deploy, rsync version
-if [ "$APP_BASE" != "/usr/local/share/hydra" ]; then
- echo "Installing into /usr/local/share/hydra..."
- $sudo rsync -av --delete $APP_BASE/ /usr/local/share/hydra/
+if [ "$APP_BASE" != "$DESTDIR/usr/local/share/hydra" ]; then
+ echo "Installing Hydra Suite into $DESTDIR/usr/local/share/hydra..."
+ $sudo rsync -av --delete $APP_BASE/ $DESTDIR/usr/local/share/hydra/
fi
# Update symlinks
-$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
+$sudo ln -sf /usr/local/share/hydra/hydra $DESTDIR/usr/local/bin/hydra
+$sudo ln -sf /usr/local/share/hydra/hydra $DESTDIR/usr/local/bin/hydractl
+$sudo ln -sf /usr/local/share/hydra/hydras $DESTDIR/usr/local/bin/hydras
# 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 -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
+$sudo rm -fr $DESTDIR/usr/local/hydra
+$sudo rm -f $DESTDIR/usr/local/sbin/hydra
+$sudo rm -f $DESTDIR/usr/local/sbin/hydractl
+$sudo rm -f $DESTDIR/usr/local/sbin/hydras