git: 5f9aa574da6a - main - filesystems/zrepl: fix 500.zrepl periodic job with multiple certs

From: Alan Somers <asomers_at_FreeBSD.org>
Date: Wed, 06 Aug 2025 13:47:21 UTC
The branch main has been updated by asomers:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5f9aa574da6ad6537540747e5dd7e0a69f417881

commit 5f9aa574da6ad6537540747e5dd7e0a69f417881
Author:     Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2025-08-05 22:04:35 +0000
Commit:     Alan Somers <asomers@FreeBSD.org>
CommitDate: 2025-08-06 13:47:08 +0000

    filesystems/zrepl: fix 500.zrepl periodic job with multiple certs
    
    Fix the sh syntax in the optional 500.zrepl periodic job so it will work
    even if there are multiple .crt files present.
    
    PR:             288682
    Approved by:    driesm (maintainer)
    Sponsored by:   ConnectWise, LLC
---
 filesystems/zrepl/Makefile           | 2 +-
 filesystems/zrepl/files/500.zrepl.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/filesystems/zrepl/Makefile b/filesystems/zrepl/Makefile
index 32b3da5a73fb..531be207dc23 100644
--- a/filesystems/zrepl/Makefile
+++ b/filesystems/zrepl/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	zrepl
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.6.1
-PORTREVISION=	14
+PORTREVISION=	15
 CATEGORIES=	filesystems sysutils
 
 MAINTAINER=	driesm@FreeBSD.org
diff --git a/filesystems/zrepl/files/500.zrepl.in b/filesystems/zrepl/files/500.zrepl.in
index b7f1b3abb4d3..e4a83608a75a 100644
--- a/filesystems/zrepl/files/500.zrepl.in
+++ b/filesystems/zrepl/files/500.zrepl.in
@@ -24,7 +24,7 @@ case "$weekly_zrepl_enable" in
 	echo
 	echo "Check Zrepl certificates for upcoming expiration:"
 
-	for cert in `/usr/bin/find %%ETCDIR%% -maxdepth 1 -name *.crt`; do
+	for cert in `/usr/bin/find %%ETCDIR%% -maxdepth 1 -name "*.crt"`; do
 		/usr/bin/openssl x509 --in "${cert}" \
 			-checkend "${weekly_zrepl_warntime}"