File: non-interactive-auto-update.sh

package info (click to toggle)
module-assistant 0.11.7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 616 kB
  • ctags: 98
  • sloc: perl: 1,319; sh: 274; makefile: 196
file content (14 lines) | stat: -rw-r--r-- 309 bytes parent folder | download | duplicates (10)
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"