From 2adc8fdeaaac5c3858a7cf367853c98edccffdd8 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 21 Sep 2020 16:06:56 +0200 Subject: [PATCH] fix: [host] ``dnsmasq``'s DNS waterfall didn't have proper ``logrotate`` script. Signed-off-by: Valentin Lab --- precise/host/hooks/install.d/80-dns-waterfall.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/precise/host/hooks/install.d/80-dns-waterfall.sh b/precise/host/hooks/install.d/80-dns-waterfall.sh index 3a90b126..da18c967 100755 --- a/precise/host/hooks/install.d/80-dns-waterfall.sh +++ b/precise/host/hooks/install.d/80-dns-waterfall.sh @@ -60,7 +60,7 @@ EOF ## Logrotate for dnsmasq and named ## -cat < /etc/logrotate.d/dnsmasq +cat < /etc/logrotate.d/dnsmasq /var/log/dnsmasq.log { missingok @@ -69,14 +69,14 @@ cat < /etc/logrotate.d/dnsmasq compress postrotate - kill -s SIGUSR2 "\$(cat /var/run/dnsmasq/dnsmasq.pid)" + /bin/kill -s SIGUSR2 "\$(cat /var/run/dnsmasq/dnsmasq.pid)" endscript } EOF -cat < /etc/logrotate.d/lxc-dnsmasq +cat < /etc/logrotate.d/lxc-dnsmasq /var/log/lxc-dnsmasq.log { missingok @@ -85,7 +85,7 @@ cat < /etc/logrotate.d/lxc-dnsmasq compress postrotate - kill -s SIGUSR2 "\$(cat /var/run/lxc/dnsmasq.pid)" + /bin/kill -s SIGUSR2 "\$(cat /var/run/lxc/dnsmasq.pid)" endscript }