File: nightly-pkgsync

package info (click to toggle)
pkgsync 1.27%2Bnmu1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 140 kB
  • sloc: sh: 119; makefile: 22
file content (11 lines) | stat: -rwxr-xr-x 396 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
#! /bin/sh

# Run pkgsync, logging to /var/log/pkgsync.log. If there is an error, we cat
# the entire file to stdout, so cron will complain to the admin. We don't
# rotate pkgsync.log (yet?) but it will be overwritten every night.

export PATH=/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin

if [ -x /usr/sbin/pkgsync ]; then
	( pkgsync >/var/log/pkgsync.log 2>&1 ) || cat /var/log/pkgsync.log
fi