buildvm03 support

This commit is contained in:
Silvan Calarco 2020-06-16 10:01:40 +02:00
parent 7caaeca526
commit bd6db3c6fa
2 changed files with 20 additions and 1 deletions

19
cgi-bin/webbuild-buildvm03.cgi Executable file
View File

@ -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

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
WEBBUILD_HOST=mambanana WEBBUILD_HOST=buildvm03
if [ "$QUERY_STRING" ]; then if [ "$QUERY_STRING" ]; then
# get (download, preserve content-type and content-disposition headers) # 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` contentdisposition=`curl -4 --connect-timeout 40 -sI "http://$WEBBUILD_HOST/cgi-bin/webbuild?$QUERY_STRING" -H "Content-Type: $CONTENT_TYPE" | grep Content-Disposition`