wok-6.x diff nagisk/receipt @ rev 19659
Up cookutils (873): bugfix
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 27 15:55:45 2017 +0200 (2017-01-27) |
parents | 82816c8eb08b |
children | bc37a1a08055 |
line diff
1.1 --- a/nagisk/receipt Wed Apr 15 10:26:28 2015 +0200 1.2 +++ b/nagisk/receipt Fri Jan 27 15:55:45 2017 +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 }