Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Resolves #13; apsctl check now uses wildcards #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Jamf Environment Test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ function calculateAdditionalChecks () {
#apsctl Status
echo "[step] Checking APNS Status"
APSCTL_STATUS_CHECK=$(/System/Library/PrivateFrameworks/ApplePushService.framework/apsctl status | /usr/bin/grep "server hostname:")
if [[ ${APSCTL_STATUS_CHECK} =~ "courier.push.apple.com" ]]; then
if [[ ${APSCTL_STATUS_CHECK} == *"courier.push.apple.com"* ]]; then
APSCTL_STATUS='<td style="color: green;">Connected</td>'
else
APSCTL_STATUS='<td style="color: red;">Unavailable</td>'
Expand Down