[Pkg-net-snmp-devel] Bug#626312: I also constantly get error on upgrade

kenneth johansson kenneth at southpole.se
Sat Jan 28 22:43:30 UTC 2012


not knowing what the correct solution is I simply change the postinst
script to exit with 0 in the middle before it fail. 

Don't know what the correct solution is but this is starting to be
really annoying. if all it takes is moving the load of confmodule to the
top I don't understand why this is not changed. 

Will try the next time I get a failure if that is enough to make it
work. 


------
#! /bin/sh                                                                                                                      

set -e

if [ "x$1" = xconfigure ]; then
        if [ ! `getent group snmp >/dev/null` ]; then
                 deluser --quiet --system snmp
        fi
        adduser --quiet --system --group --no-create-home
--home /var/lib/snmp snmp
        chown -R snmp:snmp /var/lib/snmp
fi

exit 0
. /usr/share/debconf/confmodule
db_version 2.0

# Automatically added by
dh_installinit                                                                                         
if [ -x "/etc/init.d/snmpd" ]; then
        update-rc.d snmpd defaults >/dev/null
        invoke-rc.d snmpd start || exit $?
fi
# End automatically added
section                                                                                               


exit 0
-------







More information about the Pkg-net-snmp-devel mailing list