aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/install
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-16 16:24:54 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-16 16:24:54 -0300
commit7dda52c3624342378614a84a3f2bd5d0a37edc9a (patch)
tree8f1f350da61f540d23f7a06d62afb845097aa4c0 /share/hydractl/install
parent2c8ec73df36323d4a58df8cfe30302ecca2722d7 (diff)
downloadhydra-7dda52c3624342378614a84a3f2bd5d0a37edc9a.tar.gz
hydra-7dda52c3624342378614a84a3f2bd5d0a37edc9a.tar.bz2
Install: removes git way, but keep package installation
Diffstat (limited to 'share/hydractl/install')
-rwxr-xr-xshare/hydractl/install24
1 files changed, 6 insertions, 18 deletions
diff --git a/share/hydractl/install b/share/hydractl/install
index 4e05848..fb7f0b9 100755
--- a/share/hydractl/install
+++ b/share/hydractl/install
@@ -25,24 +25,12 @@ if [ "`whoami`" != 'root' ]; then
sudo="sudo"
fi
-# Deploy, git version
-#
-#if ! which git &> /dev/null; then
-# echo "Installing git..."
-# $sudo apt-get update
-# $sudo apt-get install git -y
-#fi
-#
-#if [ -z "$ORIGIN" ]; then
-# ORIGIN="git://git.fluxo.info/hydra.git"
-#fi
-#
-#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/share/hydra ; $sudo git pull ; $sudo git reset --hard $COMMIT )
-#fi
+# Check for git
+if ! which git &> /dev/null; then
+ echo "Installing git..."
+ $sudo apt-get update
+ $sudo apt-get install git -y
+fi
# Deploy, rsync version
if [ "$APP_BASE" != "/usr/local/share/hydra" ]; then