mirror of
https://github.com/smittix/intercept.git
synced 2026-07-22 00:08:10 -07:00
Suppress needrestart prompts on Ubuntu Server
Set DEBIAN_FRONTEND and NEEDRESTART_MODE to prevent the "scanning processes/candidates/microcode" messages during apt installs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -325,6 +325,11 @@ EOF
|
|||||||
|
|
||||||
install_debian_packages() {
|
install_debian_packages() {
|
||||||
need_sudo
|
need_sudo
|
||||||
|
|
||||||
|
# Suppress needrestart prompts (Ubuntu Server 22.04+)
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
export NEEDRESTART_MODE=a
|
||||||
|
|
||||||
info "Updating APT package lists..."
|
info "Updating APT package lists..."
|
||||||
$SUDO apt-get update -y >/dev/null
|
$SUDO apt-get update -y >/dev/null
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user