script-system-update 328 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. # Update the system
  3. # Copyright 2021 Bryan C. Roessler
  4. parent="${BASH_SOURCE[0]}"
  5. parent=${parent%/*}
  6. [[ -f $parent/script-functions ]] && . "$parent"/script-functions || exit 1
  7. is_root
  8. ask_ok "Security updates are automatically installed, perform a full system update?" || exit $?
  9. dnf update --refresh