[project @ peter@palfrader.org-20080722212627-x0iihf7gs7z89qb5]
authorPeter Palfrader <peter@palfrader.org>
Tue, 22 Jul 2008 21:26:27 +0000 (21:26 +0000)
committerPeter Palfrader <peter@palfrader.org>
Tue, 22 Jul 2008 21:26:27 +0000 (21:26 +0000)
Don't just print the sudoers lines to stdout, tell the admin to add them also.

dsa-nagios-nrpe-config/debian/changelog
dsa-nagios-nrpe-config/debian/postinst

index aabb758..53245b9 100644 (file)
@@ -1,3 +1,10 @@
+dsa-nagios-nrpe-config (48) unstable; urgency=low
+
+  * Don't just print the sudoers lines to stdout, tell the admin to add them
+    also.
+
+ -- Peter Palfrader <weasel@debian.org>  Tue, 22 Jul 2008 21:25:56 +0000
+
 dsa-nagios-nrpe-config (47) unstable; urgency=low
 
   * dsa-check-hpacucli: Check transfer speed of disks.
index 2173952..3f0c530 100644 (file)
@@ -58,6 +58,8 @@ if [ -e /usr/sbin/hpacucli ] && [ -e /dev/cciss/c0d0 ] ; then
                echo 'nagios  ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=0 show status'
                echo
        elif ! grep '^nagios.*hpacucli.* pd .*:.* show' /etc/sudoers > /dev/null; then
+               echo
+               echo 'WARNIG: Add these lines to sudoers:'
                echo 'nagios  ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd [0-9]\:[0-9] show'
                echo 'nagios  ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd [0-9]I\:[0-9]\:[0-9] show'
        fi