fix rc.local adding, simplify the grep -> more errors possible, less tricky
authormh <mh@immerda.ch>
Wed, 1 Oct 2008 21:57:15 +0000 (21:57 +0000)
committermh <mh@immerda.ch>
Wed, 1 Oct 2008 21:57:15 +0000 (21:57 +0000)
manifests/client.pp

index 86babaa..dcec13e 100644 (file)
@@ -96,7 +96,7 @@ class munin::client::openbsd inherits munin::client::base {
     }
     exec{'enable_munin_on_boot':
         command => 'echo "if [ -x /opt/munin/sbin/munin-node ]; then echo -n \' munin\'; /opt/munin/sbin/munin-node; fi" >> /etc/rc.local',
-        unless => 'grep -q "if [ -x /opt/munin/sbin/munin-node ]; then echo -n \' munin\'; /opt/munin/sbin/munin-node; fi" /etc/rc.local',
+        unless => 'grep -q "munin-node" /etc/rc.local',
         require => File['/var/run/munin'],
     }
     Service['munin-node']{