/usr/share/doc/module-assistant/examples/non-interactive-auto-update.sh is in module-assistant 0.11.4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/bin/sh
# apt-listchanges should not interrupt it
APT_LISTCHANGES_FRONTEND=mail
export APT_LISTCHANGES_FRONTEND
# run that if needed
# apt-get update > /dev/null
t=`mktemp`
# hide output if everything was okay, good for cron jobs
module-assistant update,a-i allu -vito >"$t" 2>&1 || cat "$t"
rm -f "$t"
|