In the postinstall script, if /etc/ld.so.conf is missing, the grep
whines about it. Since it'll be created anyways if it's not there, you
might consider doing:
if [ ! -f /etc/ld.so.conf ]; then
touch /etc/ld.so.conf
fi
before the grep.