megabyte-labs / install.doctor

A glorious combination of application / theme settings and a performant cross-platform, desktop-oriented software suite.
https://megabyte.space
Other
85 stars 17 forks source link

`softwareupdate` Password Prompt #121

Open ProfessorManhattan opened 8 months ago

ProfessorManhattan commented 8 months ago

❔ What are you experiencing an issue with?

Latest Release

❔ Version

N/A

🐞 Description

Even after adding user ALL=(ALL:ALL) NOPASSWD: ALL in /etc/sudoers, when running sudo softwareupdate -i -a -R there is a password prompt on macOS. Our goal should be to eliminate as much as possible of the various macOS user attention required stuff.

In addition, when softwareupdate needs a reboot, there is a prompt that asks Do you want to terminate running processes in this window? -- we need a way of bypassing this prompt. As of right now, the script continues after a reboot by adding a line that does bash <(curl -sSL https://install.doctor/start) at the end of the ~/.zshrc

Basically, we need to figure out the best way of running this script on macOS without having to deal with all the manual prompts.

⏺️ Steps To Reproduce

No response

πŸ“’ Relevant Log Output

No response

πŸ’‘ Possible Solution

No response