]> git.pld-linux.org Git - packages/cacti-template-mail_statistics.git/commitdiff
- use "pass", not "extend"
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 27 Dec 2010 16:09:06 +0000 (16:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-template-mail_statistics.spec -> 1.4

cacti-template-mail_statistics.spec

index 89530a44344f77c93133bf670ed64e2c3a37886f..f64865df58e88897f5cd67fdf9289da57a7865f3 100644 (file)
@@ -60,14 +60,14 @@ rm -rf $RPM_BUILD_ROOT
 
 %post -n net-snmp-agent-mail_statistics
 if ! grep -qF %{snmpoid} %{snmpdconfdir}/snmpd.local.conf; then
-       echo "extend %{snmpoid} cacti_postfix %{agentscript} /var/log/maillog %{dbfile} %{snmpoid}" >> %{snmpdconfdir}/snmpd.local.conf
+       echo "pass %{snmpoid} cacti_postfix %{agentscript} /var/log/maillog %{dbfile} %{snmpoid}" >> %{snmpdconfdir}/snmpd.local.conf
        %service -q snmpd reload
 fi
 
 %preun -n net-snmp-agent-mail_statistics
 if [ "$1" = 0 ]; then
        if [ -f %{snmpdconfdir}/snmpd.local.conf ]; then
-               %{__sed} -i -e "/extend %(echo %{snmpoid} | sed -e 's,\.,\\.,g')/d" %{snmpdconfdir}/snmpd.local.conf
+               %{__sed} -i -e "/pass %(echo %{snmpoid} | sed -e 's,\.,\\.,g')/d" %{snmpdconfdir}/snmpd.local.conf
                %service -q snmpd reload
        fi
 fi
This page took 0.08946 seconds and 4 git commands to generate.