From 7f0bf86913cea7929931b6b276e88cc55311d167 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 20 Sep 2015 19:27:31 -0300 Subject: Switching to simpler rsync installation --- share/hydra/deploy | 2 +- share/hydra/install | 17 +++++++++++------ share/hydractl/install | 16 ++++++++++------ 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/share/hydra/deploy b/share/hydra/deploy index 0c01623..3705a9e 100755 --- a/share/hydra/deploy +++ b/share/hydra/deploy @@ -39,7 +39,7 @@ for node in $NODES; do # Sync repository to server # Exclude eventual keys and version control files - rsync -CrltDv --no-perms --exclude=keys --delete --remote-rsync "sudo rsync" $HYDRA_FOLDER/puppet/ $node:/etc/puppet/ + rsync -CrltDv --no-perms --exclude=keys --delete --rsync-path "sudo rsync" $HYDRA_FOLDER/puppet/ $node:/etc/puppet/ # Run puppet $HYDRA_CONNECT $node < /dev/null; then @@ -44,12 +48,13 @@ for node in $NODES; do 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 # Update symlinks sudo ln -sf /usr/local/hydra/hydra /usr/local/bin/hydra 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 -- cgit v1.2.3