Deploys the PostgreSQL Command Line Client (libpq) via Homebrew. This provides the psql binary needed by developers and scripts to interface with PostgreSQL databases without running a local Postgres server.
- Detection: Checks if
libpqis present in the local Homebrew cellar. - Privilege Dropping: Bypasses the Intune
rootexecution by switching to the local console user viasudo -u. - Remediation: Silently installs the
libpqformula and creates the required symlinks sopsqlis accessible in the user's$PATH.
- Upload script:
install-postgresql-cli.sh - Run script as signed-in user: No (Requires root execution initially)