From bd6db3c6faf67648c509833dcea3450a1b277de2 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Tue, 16 Jun 2020 10:01:40 +0200 Subject: [PATCH] buildvm03 support --- cgi-bin/webbuild-buildvm03.cgi | 19 +++++++++++++++++++ cgi-bin/webbuild-webbuild-arm.cgi | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100755 cgi-bin/webbuild-buildvm03.cgi diff --git a/cgi-bin/webbuild-buildvm03.cgi b/cgi-bin/webbuild-buildvm03.cgi new file mode 100755 index 0000000..f1eccea --- /dev/null +++ b/cgi-bin/webbuild-buildvm03.cgi @@ -0,0 +1,19 @@ +#!/bin/bash +WEBBUILD_HOST=buildvm03 +if [ "$QUERY_STRING" ]; then + # get (download, preserve content-type and content-disposition headers) + contentdisposition=`curl -4 --connect-timeout 40 -sI "http://$WEBBUILD_HOST/cgi-bin/webbuild?$QUERY_STRING" -H "Content-Type: $CONTENT_TYPE" | grep Content-Disposition` + echo "\ +$contentdisposition +Content-Type: application/octet-stream +" + stdbuf -o0 curl -4 --connect-timeout 40 "http://$WEBBUILD_HOST/cgi-bin/webbuild?$QUERY_STRING" -H "Content-Type: $CONTENT_TYPE" +else + echo "\ +Content-Type: text/xml +Pragma: no-cache + +" + + stdbuf -o0 curl -4 --connect-timeout 40 "http://$WEBBUILD_HOST/cgi-bin/webbuild" -H "Content-Type: $CONTENT_TYPE" --data-binary @- --stderr /dev/null +fi diff --git a/cgi-bin/webbuild-webbuild-arm.cgi b/cgi-bin/webbuild-webbuild-arm.cgi index 53a401b..f1eccea 100755 --- a/cgi-bin/webbuild-webbuild-arm.cgi +++ b/cgi-bin/webbuild-webbuild-arm.cgi @@ -1,5 +1,5 @@ #!/bin/bash -WEBBUILD_HOST=mambanana +WEBBUILD_HOST=buildvm03 if [ "$QUERY_STRING" ]; then # get (download, preserve content-type and content-disposition headers) contentdisposition=`curl -4 --connect-timeout 40 -sI "http://$WEBBUILD_HOST/cgi-bin/webbuild?$QUERY_STRING" -H "Content-Type: $CONTENT_TYPE" | grep Content-Disposition`