dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

Calls to systemsetup in macos script return error message

Open mmcalli opened this issue 1 year ago • 1 comments

Calls to systemsetup in the macos setup script return error messages. Here's an example:-

[:~] $ sudo systemsetup -setrestartfreeze on
2022-07-18 12:50:15.251 systemsetup[16791:120362] ### Error:-99 File:/AppleInternal/Library/BuildRoots/b6051351-c030-11ec-96e9-3e7866fcf3a1/Library/Caches/com.apple.xbs/Sources/Admin/InternetServices.m Line:379
[:~] $ sudo systemsetup -setcomputersleep Off > /dev/null
2022-07-18 12:55:37.204 systemsetup[17214:126771] ### Error:-99 File:/AppleInternal/Library/BuildRoots/b6051351-c030-11ec-96e9-3e7866fcf3a1/Library/Caches/com.apple.xbs/Sources/Admin/InternetServices.m Line:379

Issue occurred on macOS Monterey 12.4, with an intel based chip. Commands run from a bash shell.

mmcalli avatar Jul 18 '22 17:07 mmcalli

2> /dev/null will suppress the messages. I haven't seen an issue with doing this and settings appear to apply.

tresni avatar Nov 21 '22 17:11 tresni