From fc9dd859a62fa1547c00207d4d21ea191d518e98 Mon Sep 17 00:00:00 2001 From: Jan Lentfer Date: Sun, 24 Jan 2010 12:41:26 +0100 Subject: [PATCH] periodic/security: minor fixes to 670.pkgsraudit * rc was only set to 1 when but never to 0 * pkgsrc tools where not in PATH so when run from crontab it wouldn't work --- etc/periodic/security/670.pkgsrcaudit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/periodic/security/670.pkgsrcaudit b/etc/periodic/security/670.pkgsrcaudit index ceeaa0ec9e..c56b01a33a 100644 --- a/etc/periodic/security/670.pkgsrcaudit +++ b/etc/periodic/security/670.pkgsrcaudit @@ -33,6 +33,7 @@ then source_periodic_confs fi +PATH=$PATH:/usr/pkg/sbin pkgdb_dir=${pkgdb_dir:-/var/db/pkg} if pkg_info -K ${pkgdb_dir} -q -E '*'; then @@ -66,5 +67,7 @@ if pkg_info -K ${pkgdb_dir} -q -E '*'; then fi if [ $rc0 -gt 0 ] || [ $rc1 -gt 0 ] || [ $rc2 -gt 0 ]; then rc=1 +else + rc=0 fi exit "$rc" -- 2.41.0