From b63cb7937892c18a9c3c6da6b06e0c9a5fe7b3a1 Mon Sep 17 00:00:00 2001 From: Hendrik Jäger Date: Thu, 5 May 2022 21:28:33 +0200 Subject: use globbing instead of parsing ls --- templates/etc/s6-services/s6-logrotater/run.epp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/etc/s6-services/s6-logrotater/run.epp b/templates/etc/s6-services/s6-logrotater/run.epp index 347f85d..9b678a9 100644 --- a/templates/etc/s6-services/s6-logrotater/run.epp +++ b/templates/etc/s6-services/s6-logrotater/run.epp @@ -6,7 +6,7 @@ foreground { sleep 10m } -forbacktickx -p s6svc { ls -1N /etc/s6-scandir/ } -importas -u s6svc s6svc -if { test -d /etc/s6-scandir/\${s6svc}/log } -s6-svc -a /etc/s6-scandir/\${s6svc}/log +elglob -0 s6loggers /etc/s6-scandir/*/log +forx -p logger { $s6loggers } +importas -u logger logger +s6-svc -a $logger -- cgit v1.2.3