Browse Source

fix: [host] ensure to use the full ``kill`` binary

In some circumstances a call to ``kill`` will trigger the
builtin of your shell and could not support given options.

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
pull/1/head
Valentin Lab 3 years ago
parent
commit
84b271b344
  1. 4
      precise/host/hooks/install.d/80-dns-waterfall.sh

4
precise/host/hooks/install.d/80-dns-waterfall.sh

@ -74,7 +74,7 @@ cat <<EOF > /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
}
@ -90,7 +90,7 @@ cat <<EOF > /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
}

Loading…
Cancel
Save