Skip to content
Snippets Groups Projects
test_nginx_conf_valid.sh 159 B
#!/bin/bash
# Criticality: High
# Checks that the webserver configuration has no errors.
set -e

if ( which nginx >/dev/null ); then
	nginx -t
else
	exit 2
fi