"Fossies" - the Fresh Open Source Software Archive

Member "magnum-8.1.0/magnum/drivers/common/templates/swarm/fragments/cfn-signal.sh" (1 Oct 2019, 373 Bytes) of package /linux/misc/openstack/magnum-8.1.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 
    3 . /etc/sysconfig/heat-params
    4 
    5 echo "notifying heat"
    6 
    7 if [ "$VERIFY_CA" == "True" ]; then
    8     VERIFY_CA=""
    9 else
   10     VERIFY_CA="-k"
   11 fi
   12 
   13 STATUS="SUCCESS"
   14 REASON="Setup complete"
   15 DATA="OK"
   16 UUID=`uuidgen`
   17 
   18 data=$(echo '{"status": "'${STATUS}'", "reason": "'$REASON'", "data": "'${DATA}'", "id": "'$UUID'"}')
   19 
   20 sh -c "${WAIT_CURL} ${VERIFY_CA} --data-binary '${data}'"