wok diff nagisk/receipt @ rev 21021
updated gvpe (2.25 -> 3.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Mar 10 15:17:47 2019 +0100 (2019-03-10) |
parents | 82816c8eb08b |
children | bc37a1a08055 |
line diff
1.1 --- a/nagisk/receipt Wed Apr 15 10:26:28 2015 +0200 1.2 +++ b/nagisk/receipt Sun Mar 10 15:17:47 2019 +0100 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 }