]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
make_chacractl_config now accepts a url as an argument
authorAndrew Schoen <aschoen@redhat.com>
Tue, 2 Aug 2016 19:44:22 +0000 (14:44 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 2 Aug 2016 19:56:46 +0000 (14:56 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
scripts/build_utils.sh

index 2862911d8712737dbf7aa64877cd0e6e654ca22c..46ab58373190c1d9613e7094762813cbecc050ac 100644 (file)
@@ -40,8 +40,14 @@ install_python_packages () {
 
 make_chacractl_config () {
     # create the .chacractl config file
+    if [ -z "$1" ]                           # Is parameter #1 zero length?
+    then
+      url=$CHACRACTL_URL
+    else
+      url=$1
+    fi
     cat > $HOME/.chacractl << EOF
-url = "$CHACRACTL_URL"
+url = "$url"
 user = "$CHACRACTL_USER"
 key = "$CHACRACTL_KEY"
 EOF