b1873: Ensure syntax check is green before running the cmd.

This commit is contained in:
Thomas Stokes
2024-03-14 15:04:17 +01:00
parent 1581bcaa69
commit 8b05bfaeef
@@ -47,6 +47,10 @@ then
fi
fi
sleep 2
${COMMAND_ON_COMPLETION}
if httpd -t ; then
${COMMAND_ON_COMPLETION}
else
echo "Config error"
fi
fi