disable IPv6 restconf test by default

This commit is contained in:
Olof hagsand 2020-11-15 17:00:35 +01:00
parent 6eb18da5e9
commit a5d56f1cb7
2 changed files with 10 additions and 3 deletions

View file

@ -42,8 +42,7 @@ if [ -f ./config.sh ]; then
fi
# Sanity nginx running on systemd platforms
# ./lib.sh: line 45: systemctl: command not found
if systemctl > /dev/null; then
if systemctl > /dev/null 2>&1 ; then
nginxactive=$(systemctl show nginx |grep ActiveState=active)
if [ "${WITH_RESTCONF}" = "fcgi" ]; then
if [ -z "$nginxactive" ]; then