From 8e3d7dfa20b966b928078d8071d10fb186a0d781 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Mon, 21 Oct 2024 09:17:49 -0400 Subject: cleanup nfs1 host script --- files/etc/cron.d/poudriere.pkg_server | 1 + files/etc/cron.d/zfs-trim.freebsd | 4 +--- files/usr/local/libexec/poudriere-cron.pkg_repository | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 files/etc/cron.d/poudriere.pkg_server (limited to 'files') diff --git a/files/etc/cron.d/poudriere.pkg_server b/files/etc/cron.d/poudriere.pkg_server new file mode 100644 index 0000000..57d9dac --- /dev/null +++ b/files/etc/cron.d/poudriere.pkg_server @@ -0,0 +1 @@ +@weekly root lockf -t 0 /tmp/poudriere-cron.lock /usr/local/libexec/poudriere-cron $(echo "$poudriere_versions" | tr . _) diff --git a/files/etc/cron.d/zfs-trim.freebsd b/files/etc/cron.d/zfs-trim.freebsd index 64b07b9..80e0cd5 100644 --- a/files/etc/cron.d/zfs-trim.freebsd +++ b/files/etc/cron.d/zfs-trim.freebsd @@ -1,3 +1 @@ -SHELL=/bin/sh -PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin -@weekly root zfs list -Ho name | xargs -r -n1 zpool trim +@weekly root zpool list -Ho name | xargs -r -n1 zpool trim diff --git a/files/usr/local/libexec/poudriere-cron.pkg_repository b/files/usr/local/libexec/poudriere-cron.pkg_repository index b79535b..f7a5c1c 100644 --- a/files/usr/local/libexec/poudriere-cron.pkg_repository +++ b/files/usr/local/libexec/poudriere-cron.pkg_repository @@ -16,7 +16,7 @@ done for jail in "$@"; do poudriere jail -u -j "$jail" > /dev/null - poudriere bulk -j "$jail" -f /usr/local/etc/poudriere.d/pkglist-idm -p "$ports_tree" -z idm > /dev/null + poudriere bulk -j "$jail" -f /usr/local/etc/poudriere.d/idm-pkglist -p "$ports_tree" -z idm > /dev/null poudriere bulk -j "$jail" -f /usr/local/etc/poudriere.d/pkglist -p "$ports_tree" > /dev/null done -- cgit v1.2.3