Skip to content

Instantly share code, notes, and snippets.

@ewjoachim
Last active January 17, 2024 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ewjoachim/fd4f2626524571ba112b7b534f5ca07b to your computer and use it in GitHub Desktop.
Save ewjoachim/fd4f2626524571ba112b7b534f5ca07b to your computer and use it in GitHub Desktop.
Disable ubuntu asking for Pro in update-manager
#!/bin/bash -eu
# Need jq (should be quite rewritable without jq)
# Place it as something named `pro` in your path before `/usr/bin`
# e.g.`/usr/local/sbin/pro` or `~/.local/bin/pro` if that's in your path
if [ "${1:-} ${2:-}" = 'security-status --format=json' ]; then
/usr/bin/pro security-status --format=json | jq -cM '.packages = []'
exit 0
fi
exec /usr/bin/pro "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment