send service status to /dev/null to prevent FP on install failure

This commit is contained in:
m0duspwnens
2020-08-14 16:45:28 -04:00
parent 51cbccad09
commit 43f6f5c27a

View File

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