From 22e592442ca0a96dafc4bace06b2bf0fecb6a46a Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Thu, 12 Nov 2015 11:15:35 -0600 Subject: [PATCH] add a util function to create the .chacractl config file Signed-off-by: Andrew Schoen --- scripts/build_utils.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 812ed276..142b9ab6 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -30,3 +30,12 @@ install_python_packages () { $VENV/pip install --upgrade --exists-action=i --find-links="file://$PIP_SDIST_INDEX" --no-index $package done } + +make_chacractl_config () { + # create the .chacractl config file + cat > $HOME/.chacractl << EOF + url = "$CHACRACTL_URL" + user = "$CHACRACTL_USER" + key = "$CHACRACTL_KEY" + EOF +} -- 2.39.5