From ce3b5b7cbd1182447c078fbcee312d22997ab001 Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Tue, 14 Nov 2017 17:19:15 +0100 Subject: [PATCH] evoacme: use xargs instead of while --- evoacme/files/certbot.cron | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/evoacme/files/certbot.cron b/evoacme/files/certbot.cron index 2d8d4c1d..a16bcf69 100755 --- a/evoacme/files/certbot.cron +++ b/evoacme/files/certbot.cron @@ -9,6 +9,6 @@ [ -f /etc/default/evoacme ] && . /etc/default/evoacme CRT_DIR="${CRT_DIR:-'/etc/letsencrypt'}" -find "${CRT_DIR}" -maxdepth 1 -mindepth 1 -type d ! -path "*accounts" ! -path "*hooks" -printf "%f\n" | while read vhost; do - QUIET=1 evoacme "$vhost" -done +export QUIET=1 + +find "${CRT_DIR}" -maxdepth 1 -mindepth 1 -type d ! -path "*accounts" ! -path "*hooks" -printf "%f\n" | xargs -n1 evoacme