diff --git a/CHANGELOG.md b/CHANGELOG.md index b84e4efe..8aa27616 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ The **patch** part changes is incremented if multiple releases happen the same m ### Added +* apt: apt_hold_packages: broadcast message with wall, if present * Explicit permissions for systemd overrides * evolinux-base: option to bypass raid-related tasks * generate-ldif: Add support for php-fpm in containers diff --git a/apt/files/check_held_packages.sh b/apt/files/check_held_packages.sh index 181b9679..0ee3f723 100644 --- a/apt/files/check_held_packages.sh +++ b/apt/files/check_held_packages.sh @@ -21,7 +21,12 @@ if [ -f ${config_file} ]; then if [ -n "${package}" ]; then if is_installed ${package} && ! is_held ${package}; then apt-mark hold ${package} - >&2 echo "Package \`${package}' has been marked \`hold'." + msg="Package \`${package}' has been marked \`hold'." + >&2 echo "${msg}" + wall_bin=$(command -v wall) + if [ -n "${wall_bin}" ]; then + "${wall_bin}" --timeout 5 "${msg}" + fi return_code=1 fi fi