fixed webhook script
This commit is contained in:
parent
74cdd2311e
commit
0aa5f44217
7
dist/webhook-test.cgi
vendored
7
dist/webhook-test.cgi
vendored
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
printf "Content-Type: text/plain\r\n\r\n"
|
||||
#env
|
||||
if [ "$CONTENT_TYPE"="application/json" ] && [ "$HTTP_X_GITEA_EVENT"="push" ];then
|
||||
echo "rebuilding"
|
||||
"../build.sh"
|
||||
fi
|
1
dist/webhook.cgi
vendored
Symbolic link
1
dist/webhook.cgi
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
../webhook.cgi
|
10
webhook.cgi
Executable file
10
webhook.cgi
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
exec 2>&1
|
||||
printf "Content-Type: text/plain\r\n\r\n"
|
||||
#env
|
||||
if [ -n "$CONTENT_TYPE" ] && [ -n "$HTTP_X_GITEA_EVENT" ] && [ "$CONTENT_TYPE"="application/json" ] && [ "$HTTP_X_GITEA_EVENT"="push" ];then
|
||||
echo "rebuilding"
|
||||
../build.sh
|
||||
else
|
||||
echo "incorrect data"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user