evoacme: use -printf instead of -exec basename

This commit is contained in:
Victor LABORIE 2017-11-14 17:01:51 +01:00
parent cf190a76ff
commit b801bdb576
1 changed files with 1 additions and 1 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" -exec basename {} \; | while read vhost; do
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