aboutsummaryrefslogtreecommitdiff
path: root/share/hydra/init
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-10-19 11:47:44 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-10-19 11:47:44 -0200
commit25d3c4cd2632d6ee0f57f264cf79304404cb0e3d (patch)
treebb90e20fe5c229f2501e7bd8194973f40f08d0f1 /share/hydra/init
parent517f70e24ea76925bef7d52e219dbce8f014d8e4 (diff)
downloadhydra-25d3c4cd2632d6ee0f57f264cf79304404cb0e3d.tar.gz
hydra-25d3c4cd2632d6ee0f57f264cf79304404cb0e3d.tar.bz2
Intialization fixes
Diffstat (limited to 'share/hydra/init')
-rwxr-xr-xshare/hydra/init18
1 files changed, 11 insertions, 7 deletions
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