all clixon event functions prepended with clixon_

Replaced fcgi getparam code with clixon-data parameters
This commit is contained in:
Olof hagsand 2020-06-05 16:19:03 +02:00
parent a455b15f03
commit 14b03f63a3
34 changed files with 567 additions and 877 deletions

View file

@ -87,6 +87,15 @@ else
: ${RCWAIT:=2}
fi
# RESTCONF protocol, eg http or https
: ${RCPROTO:=http}
# RESTCONF port
: ${RCPORT:=80}
# RESTCONF error message (if not up)
: ${RCERROR:="HTTP/1.1 502 Bad Gateway"}
# www user (on linux typically www-data, freebsd www)
# could be taken from configure
: ${wwwuser:=www-data}
@ -238,9 +247,9 @@ stop_restconf(){
# Wait for restconf to stop sending 502 Bad Gateway
wait_restconf(){
hdr=$(curl --head -sS http://localhost/restconf)
hdr=$(curl --head -sS $RCPROTO://localhost:$RCPORT/restconf)
let i=0;
while [[ $hdr == "HTTP/1.1 502 Bad Gateway"* ]]; do
while [[ $hdr == "$RCERROR"* ]]; do
sleep 1
hdr=$(curl --head -sS http://localhost/restconf)
let i++;