Merge pull request #1190 from Security-Onion-Solutions/quickfix/setuplogging

send service status to /dev/null to prevent FP on install failure
This commit is contained in:
Josh Patterson
2020-08-14 16:47:55 -04:00
committed by GitHub

View File

@@ -233,7 +233,7 @@ check_service_status() {
local service_name=$1
echo "Checking service $service_name status" >> "$setup_log" 2>&1
systemctl status $service_name >> "$setup_log" 2>&1
systemctl status $service_name > /dev/null 2>&1
local status=$?
#true if there is an issue with the service false if it is running properly
if [ $status -gt 0 ]; then