Add defaults for pkg_info and pkg_admin variables in case pkgpath.conf trunk
authorprlw1 <prlw1@NetBSD.org>
Sun, 08 Sep 2013 08:19:40 +0000
branchtrunk
changeset 220908 f391f8748156
parent 220907 f67560202705
child 220909 dc6125f0fb48
Add defaults for pkg_info and pkg_admin variables in case pkgpath.conf is not installed.
etc/daily
etc/security
--- a/etc/daily	Sun Sep 08 06:37:23 2013 +0000
+++ b/etc/daily	Sun Sep 08 08:19:40 2013 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#	$NetBSD: daily,v 1.89 2013/05/01 05:36:25 agc Exp $
+#	$NetBSD: daily,v 1.90 2013/09/08 08:19:40 prlw1 Exp $
 #	@(#)daily	8.2 (Berkeley) 1/25/94
 #
 
@@ -18,6 +18,9 @@
 date="$(date)"
 rcvar_manpage='daily.conf(5)'
 
+pkg_admin=${pkg_admin:-/usr/sbin/pkg_admin}
+pkg_info=${pkg_info:-/usr/sbin/pkg_info}
+
 echo "To: ${MAILTO:-root}"
 echo "Subject: $host daily output for $date"
 echo ""
--- a/etc/security	Sun Sep 08 06:37:23 2013 +0000
+++ b/etc/security	Sun Sep 08 08:19:40 2013 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#	$NetBSD: security,v 1.112 2013/05/01 05:36:25 agc Exp $
+#	$NetBSD: security,v 1.113 2013/09/08 08:19:40 prlw1 Exp $
 #	from: @(#)security	8.1 (Berkeley) 6/9/93
 #
 
@@ -30,6 +30,7 @@
 backup_dir=${backup_dir:-/var/backups}
 max_loginlen=${max_loginlen:-8}
 max_grouplen=${max_grouplen:-8}
+pkg_admin=${pkg_admin:-/usr/sbin/pkg_admin}
 pkg_info=${pkg_info:-/usr/sbin/pkg_info}
 
 # Other configurable variables