wok-next diff nagisk/receipt @ rev 19211

Up python-mako (1.0.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 14 09:54:21 2016 +0200 (2016-06-14)
parents 82816c8eb08b
children d43bf7aae921
line diff
     1.1 --- a/nagisk/receipt	Wed Apr 15 10:26:28 2015 +0200
     1.2 +++ b/nagisk/receipt	Tue Jun 14 09:54:21 2016 +0200
     1.3 @@ -24,8 +24,8 @@
     1.4  # Pre and post install commands for Tazpkg.
     1.5  post_install()
     1.6  {
     1.7 -	grep -qs check_asterisk_version $1/etc/nagios/nrpe.cfg ||
     1.8 -	cat >> $1/etc/nagios/nrpe.cfg <<EOT
     1.9 +	grep -qs check_asterisk_version "$1/etc/nagios/nrpe.cfg" ||
    1.10 +	cat >> "$1/etc/nagios/nrpe.cfg" <<EOT
    1.11  command[check_asterisk_version]=/usr/share/nagios/libexec/nagisk.pl -c version
    1.12  command[check_asterisk_peers]=/usr/share/nagios/libexec/nagisk.pl -c peers -w \$ARG1\$ -x \$ARG2\$
    1.13  command[check_asterisk_peer]=/usr/share/nagios/libexec/nagisk.pl -c peer -p \$ARG1\$ -w \$ARG2\$ -x \$ARG3\$
    1.14 @@ -40,9 +40,9 @@
    1.15  #command[check_asterisk_pri_spans]=/usr/share/nagios/libexec/nagisk.pl -c pri_spans
    1.16  command[check_asterisk_registry]=/usr/share/nagios/libexec/nagisk.pl -c registry
    1.17  EOT
    1.18 -	grep '^nagios ALL=NOPASSWD' $1/etc/sudoers | grep -q asterisk ||
    1.19 -	cat >> $1/etc/sudoers <<EOT
    1.20 +	grep '^nagios ALL=NOPASSWD' "$1/etc/sudoers" | grep -q asterisk ||
    1.21 +	cat >> "$1/etc/sudoers" <<EOT
    1.22  nagios ALL=NOPASSWD: /usr/sbin/asterisk
    1.23  EOT
    1.24 -	chroot $1/ chown nagios:nagios /usr/share/nagios/libexec/nagisk.pl
    1.25 +	chroot "$1/" chown nagios:nagios /usr/share/nagios/libexec/nagisk.pl
    1.26  }