evoacme: use xargs instead of while

This commit is contained in:
Victor LABORIE 2017-11-14 17:19:15 +01:00
parent b801bdb576
commit ce3b5b7cbd
1 changed files with 3 additions and 3 deletions

View File

@ -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