Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Allow enabling the pkgng version of 400.status-pkg when there are both pkgng and pkg_tools versions on the same system.
Matthew Seaman committed 12 years ago
commit 9292ec0944d8593e237c3cc64a364d46a6e9feba
parent 6dc8648
1 file changed +12 -0
modified scripts/periodic/400.status-pkg.in
@@ -9,6 +9,18 @@ if [ -r /etc/defaults/periodic.conf ]; then
fi
pkgcmd=__PREFIX__/sbin/pkg

+
# On 9.x or lower, 400.status-pkg exists in the base system, but using
+
# the old pkg_tools commands.  Unfortunately it uses the same
+
# configuration variables, so allow the setting of
+
# $weekly_status_pkgng_enable to turn on this script without enabling
+
# the pkg_tools equivalent
+

+
case "$weekly_status_pkgng_enable" in
+
        [Yy][Ee][Ss])
+
	weekly_status_pkg_enable="$weekly_status_pkgng_enable"
+
	;;
+
esac
+

case "$weekly_status_pkg_enable" in
	[Yy][Ee][Ss])