From 25d3c4cd2632d6ee0f57f264cf79304404cb0e3d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 19 Oct 2015 11:47:44 -0200 Subject: Intialization fixes --- share/hydra/init | 18 +++++++++++------- share/hydra/install | 2 +- share/hydractl/bootstrap | 2 +- share/hydractl/install | 2 +- 4 files changed, 14 insertions(+), 10 deletions(-) (limited to 'share') diff --git a/share/hydra/init b/share/hydra/init index d21c003..c68b562 100755 --- a/share/hydra/init +++ b/share/hydra/init @@ -67,16 +67,20 @@ else fi # Create bootless repository - echo "Initializing bootless repository..." - hydra $HYDRA bootless init + if [ ! -d "$BASEDIR/bootless" ]; then + echo "Initializing bootless repository..." + hydra $HYDRA bootless init + fi # Create puppet repository - echo "Cloning initial puppet repository..." - git clone git://git.sarava.org/puppet-bootstrap.git $BASEDIR/puppet + if [ ! -d "$BASEDIR/puppet" ]; then + echo "Cloning initial puppet repository..." + git clone git://git.fluxo.info/puppet-bootstrap.git $BASEDIR/puppet - # Config puppet - echo "Configuring puppet repository..." - hydra_bootstrap_config $BASEDIR/puppet + # Config puppet + echo "Configuring puppet repository..." + hydra_bootstrap_config $BASEDIR/puppet + fi fi cat<<-EOF diff --git a/share/hydra/install b/share/hydra/install index 93ede8e..91a1226 100755 --- a/share/hydra/install +++ b/share/hydra/install @@ -30,7 +30,7 @@ fi # Validation if [ -z "$ORIGIN" ]; then - ORIGIN="git://git.sarava.org/hydra.git" + ORIGIN="git://git.fluxo.info/hydra.git" else ORIGIN_CONFIG="`hydra $HYDRA config git`" diff --git a/share/hydractl/bootstrap b/share/hydractl/bootstrap index 0d60b50..ce1d643 100755 --- a/share/hydractl/bootstrap +++ b/share/hydractl/bootstrap @@ -22,7 +22,7 @@ if [ "$STAGE" == "repository" ]; then hydractl puppet-install if [ ! -d "/etc/puppet/.git" ]; then - rm -rf /etc/puppet && git clone git://git.sarava.org/puppet-bootstrap /etc/puppet + rm -rf /etc/puppet && git clone git://git.fluxo.info/puppet-bootstrap /etc/puppet hydra_bootstrap_config /etc/puppet chown -R puppet. /etc/puppet fi diff --git a/share/hydractl/install b/share/hydractl/install index 7eb6830..0f43b4f 100755 --- a/share/hydractl/install +++ b/share/hydractl/install @@ -22,7 +22,7 @@ hydra_config_load # Validation if [ -z "$ORIGIN" ]; then - ORIGIN="git://git.sarava.org/hydra.git" + ORIGIN="git://git.fluxo.info/hydra.git" fi # Set sudo config -- cgit v1.2.3