wok-next diff nagisk/receipt @ rev 18859
Up 1.0v to 1.0.1v
author | Leonardo Laporte <hackdorte@sapo.pt> |
---|---|
date | Wed Jan 27 06:07:29 2016 +0000 (2016-01-27) |
parents | 82816c8eb08b |
children | d43bf7aae921 |
line diff
1.1 --- a/nagisk/receipt Wed Apr 15 10:26:28 2015 +0200 1.2 +++ b/nagisk/receipt Wed Jan 27 06:07:29 2016 +0000 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 }