diff options
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/install | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/share/hydractl/install b/share/hydractl/install index db45614..7eb6830 100755 --- a/share/hydractl/install +++ b/share/hydractl/install @@ -39,12 +39,16 @@ if ! which git &> /dev/null; then $sudo aptitude install git-core -y fi -if [ ! -d /usr/local/hydra ]; then - $sudo git clone $ORIGIN /usr/local/hydra - ( cd /usr/local/hydra ; $sudo git reset --hard $COMMIT ) -else - ( cd /usr/local/hydra ; $sudo git pull ; $sudo git reset --hard $COMMIT ) -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 ) +#else +# ( cd /usr/local/hydra ; $sudo git pull ; $sudo git reset --hard $COMMIT ) +#fi + +# Rsync version +$sudo rsync -av --delete $APP_BASE/ /usr/local/hydra/ # Update symlinks $sudo ln -sf /usr/local/hydra/hydra /usr/local/bin/hydra |