From edf7bceee65e8634ad46690e949eed80cdd40734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20S=C3=89RIE?= Date: Wed, 3 Jan 2018 10:00:22 +0100 Subject: [PATCH] Add -r to xargs arguments Why? Because if there is no certificates in /etc/letsencrypt it will call evoacme with no args, resulting in an error. --- evoacme/files/evoacme.cron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evoacme/files/evoacme.cron b/evoacme/files/evoacme.cron index a16bcf69..ed8b9351 100755 --- a/evoacme/files/evoacme.cron +++ b/evoacme/files/evoacme.cron @@ -11,4 +11,4 @@ CRT_DIR="${CRT_DIR:-'/etc/letsencrypt'}" export QUIET=1 -find "${CRT_DIR}" -maxdepth 1 -mindepth 1 -type d ! -path "*accounts" ! -path "*hooks" -printf "%f\n" | xargs -n1 evoacme +find "${CRT_DIR}" -maxdepth 1 -mindepth 1 -type d ! -path "*accounts" ! -path "*hooks" -printf "%f\n" | xargs -n1 -r evoacme