diff options
-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 |