[DMAAP-BC] Consolidate bus controller repos
[dmaap/buscontroller.git] / dbc-client / misc / dbc-client
index 1e079bf..461a069 100644 (file)
@@ -44,9 +44,6 @@ AUTH_METHOD=${AUTH_METHOD:-basicAuth}
 BA_IDENTITY=${BA_IDENTITY:-dmaap-bc@dmaap-bc.onap.org}
 BA_PWD=${BA_PWD:-'demo123456!'}
 
-
-
-
 config() {
        echo "ENTER config"
        set -x
@@ -65,7 +62,7 @@ config() {
                CURLCRED="-K $PEMDIR/curl.cred"
        elif [ -f $CAPEM  -a -f $CLIENTPEM -a -f $KEYPEM ]
        then
-               echo "--key $PEMDIR/$KEYPEM --cacert $PEMDIR/$CAPEM --cert $PEMDIR/${CLIENTPEM}:${CERTPWD}" > $PEMDIR/curl.cred
+               printf "key \"$PEMDIR/$KEYPEM\"\ncacert \"$PEMDIR/$CAPEM\"\ncert \"$PEMDIR/${CLIENTPEM}:${CERTPWD}\"" > $PEMDIR/curl.cred
                CURLCRED="-K $PEMDIR/curl.cred"
        else
                echo "Warning: PEM files for authorization not found!"
@@ -113,6 +110,7 @@ init() {
        done
        set +x
 }
+
 dopost() {
        set -x
        RETRY_TIME=60
@@ -136,6 +134,7 @@ dopost() {
        set +x
 
 }
+
 doprov() {
 
        set -x
@@ -155,6 +154,7 @@ doprov() {
        done
        set +x
 }
+
 delay() {
        echo "DELAY=$DELAY"
        if [ ! -z "$DELAY" ]