forked from evolix/ansible-roles
evoacme: use xargs instead of while
This commit is contained in:
parent
b801bdb576
commit
ce3b5b7cbd
|
@ -9,6 +9,6 @@
|
||||||
[ -f /etc/default/evoacme ] && . /etc/default/evoacme
|
[ -f /etc/default/evoacme ] && . /etc/default/evoacme
|
||||||
CRT_DIR="${CRT_DIR:-'/etc/letsencrypt'}"
|
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
|
export QUIET=1
|
||||||
QUIET=1 evoacme "$vhost"
|
|
||||||
done
|
find "${CRT_DIR}" -maxdepth 1 -mindepth 1 -type d ! -path "*accounts" ! -path "*hooks" -printf "%f\n" | xargs -n1 evoacme
|
||||||
|
|
Loading…
Reference in a new issue