3 # Author: Thimo Neubauer <thimo@debian.org>
4 # $Id: postinst,v 1.13 2002/09/08 19:44:17 thimo Exp $
9 ## delete config-data from the old suid-question
12 # in pre-debconf-times gnuplot saved the answer in /etc/gnuplot.conf
13 if [ -e /etc/gnuplot.conf ]; then
17 # if debconf is installed, try to remove old question
18 if [ -e /usr/share/debconf/confmodule ]; then
19 # include debconf stuff
20 . /usr/share/debconf/confmodule
22 # remove template/value a previous gnuplot version may have left
26 # also delete the eventual statoverride (if set)
28 dpkg-statoverride --remove /usr/bin/gnuplot > /dev/null 2>&1
31 # ... and finally reset a possibly set suid-flag
32 chmod 755 /usr/bin/gnuplot