diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-03 15:20:31 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-03 15:20:31 -0300 |
commit | 72d53ee47a6e62af63fbd9805b5eed08d9f0944d (patch) | |
tree | 0166ad2e4de7209c0f03cb321491a3e1e3620fb0 /lib | |
parent | cedac90b22bdd0ff823729b096e961685d5c25c7 (diff) | |
download | hydra-72d53ee47a6e62af63fbd9805b5eed08d9f0944d.tar.gz hydra-72d53ee47a6e62af63fbd9805b5eed08d9f0944d.tar.bz2 |
New function hydra_bootstrap_config
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hydra/config | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/hydra/config b/lib/hydra/config index 3cd7cc7..8dbda89 100644 --- a/lib/hydra/config +++ b/lib/hydra/config @@ -67,3 +67,18 @@ function hydra_config { exit 1 fi } + +# Configure puppet-boostrap. +function hydra_bootstrap_config { + local config="$1" + + if [ -z "$config" ] || [ ! -d "$config" ]; then + return + fi + + ( + cd $config + make submodules + make config + ) +} |