Browse Source

evoacme: use xargs instead of while

tags/9.1.0^2
Victor Laborie 3 years ago
parent
commit
ce3b5b7cbd
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      evoacme/files/certbot.cron

+ 3
- 3
evoacme/files/certbot.cron 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

Loading…
Cancel
Save