Revision a5f6a683 snf-image-host/create

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

Also available in: Unified diff