tests for restconf backend configure
rm client-cert-ca
This commit is contained in:
parent
c31b1c471b
commit
6ecb0d5232
11 changed files with 368 additions and 515 deletions
16
test/lib.sh
16
test/lib.sh
|
|
@ -49,6 +49,22 @@ if [ -f ./site.sh ]; then
|
|||
done
|
||||
fi
|
||||
|
||||
# Auto-start nginx
|
||||
nginxactive=$(systemctl show nginx |grep ActiveState=active)
|
||||
if [ "${WITH_RESTCONF}" = "fcgi" ]; then
|
||||
if [ -z "$nginxactive" ]; then
|
||||
echo -e "\e[31m\nwith-restconf=fcgi set but nginx not running, start with systemctl start nginx"
|
||||
echo -e "\e[0m"
|
||||
exit -1
|
||||
fi
|
||||
else
|
||||
if [ -n "$nginxactive" ]; then
|
||||
echo -e "\e[31m\nwith-restconf=fcgi not set but nginx running, stop with systemctl stop nginx"
|
||||
echo -e "\e[0m"
|
||||
exit -1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Test number from start
|
||||
: ${testnr:=0}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue