aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-03 15:20:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-03 15:20:31 -0300
commit72d53ee47a6e62af63fbd9805b5eed08d9f0944d (patch)
tree0166ad2e4de7209c0f03cb321491a3e1e3620fb0 /lib
parentcedac90b22bdd0ff823729b096e961685d5c25c7 (diff)
downloadhydra-72d53ee47a6e62af63fbd9805b5eed08d9f0944d.tar.gz
hydra-72d53ee47a6e62af63fbd9805b5eed08d9f0944d.tar.bz2
New function hydra_bootstrap_config
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/config15
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
+ )
+}