Revision f3e43ab1 snf-image-host/create

b/snf-image-host/create
72 72
        image_size=$($CURL -sI "$IMAGE_NAME" | grep ^Content-Length: | cut -d" " -f2)
73 73
        ;;
74 74
    pithos)
75
        cmd_args="--db $(printf "%q" "${PITHOS_DB}") \
76
                  --data $(printf "%q" "${PITHOS_DATA}") \
77
                  $(printf "%q" "${IMAGE_NAME}")"
75
        # For security reasons pass the database url to pithcat as an
76
        # environmental variable.
77
        export PITHCAT_INPUT_DB="$PITHOS_DB"
78
        export PITHCAT_INPUT_DATA="$PITHOS_DATA"
79
        cmd_args="$(printf "%q" "${IMAGE_NAME}")"
78 80
        image_cmd="./pithcat $cmd_args"
79 81
        image_size=$(./pithcat -s  $cmd_args)
80 82
        ;;

Also available in: Unified diff