From 71353fe690ecbc1fc17e1e1ede7bcfbc21dbb389 Mon Sep 17 00:00:00 2001 From: Bob Gendler Date: Thu, 7 Mar 2024 11:19:21 -0500 Subject: [PATCH] changed enabled to true --- .../system_settings_location_services_enable.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/system_settings/system_settings_location_services_enable.yaml b/rules/system_settings/system_settings_location_services_enable.yaml index a705b5a3..16734af3 100644 --- a/rules/system_settings/system_settings_location_services_enable.yaml +++ b/rules/system_settings/system_settings_location_services_enable.yaml @@ -12,7 +12,7 @@ result: fix: | [source,bash] ---- - /usr/bin/defaults write /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd LocationServicesEnabled -bool enable; + /usr/bin/defaults write /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd LocationServicesEnabled -bool true; pid=$(/bin/launchctl list | /usr/bin/awk '/com.apple.locationd/ { print $1 }') kill -9 $pid ----