File: non-interactive-auto-update.sh

package info (click to toggle)
module-assistant 0.9sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 660 kB
  • ctags: 169
  • sloc: perl: 1,218; sh: 306; makefile: 186
file content (14 lines) | stat: -rw-r--r-- 309 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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"