diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-03 15:21:50 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-03 15:21:50 -0300 |
commit | 6083f9b9a7f14deff710593234701de640fbff7f (patch) | |
tree | a217b2404c8f593f470b634e2972a4730ea910ec | |
parent | 72d53ee47a6e62af63fbd9805b5eed08d9f0944d (diff) | |
download | hydra-6083f9b9a7f14deff710593234701de640fbff7f.tar.gz hydra-6083f9b9a7f14deff710593234701de640fbff7f.tar.bz2 |
Updating hydractl bootstrap
-rwxr-xr-x | share/hydractl/bootstrap | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/share/hydractl/bootstrap b/share/hydractl/bootstrap index 735908c..3821dd7 100755 --- a/share/hydractl/bootstrap +++ b/share/hydractl/bootstrap @@ -21,11 +21,13 @@ STAGE="$1" if [ "$STAGE" == "repository" ]; then hydractl puppet-install - rm -rf /etc/puppet && git clone git://git.sarava.org/puppet-bootstrap /etc/puppet - chown -R puppet. /etc/puppet - hydra_bootstrap_config /etc/puppet + if [ ! -d "/etc/puppet/.git" ]; then + rm -rf /etc/puppet && git clone git://git.sarava.org/puppet-bootstrap /etc/puppet + chown -R puppet. /etc/puppet + hydra_bootstrap_config /etc/puppet + fi fi -if [ -e "/etc/puppet/modules/bootstrap/manifests/$stage.pp" ]; then - puppet apply /etc/puppet/modules/bootstrap/manifests/$stage.pp +if [ -e "/etc/puppet/manifests/$stage.pp" ]; then + puppet apply /etc/puppet/manifests/$stage.pp fi |