Icons are changed
[gnuplot] / debian / gnuplot-nox.postinst
1 #!/bin/sh 
2
3 # Author: Thimo Neubauer <thimo@debian.org>
4 # $Id: postinst,v 1.13 2002/09/08 19:44:17 thimo Exp $
5
6 set -e
7
8 #
9 ## delete config-data from the old suid-question
10 #
11
12 # in pre-debconf-times gnuplot saved the answer in /etc/gnuplot.conf
13 if [ -e /etc/gnuplot.conf ]; then
14     rm /etc/gnuplot.conf
15 fi
16
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
21
22     # remove template/value a previous gnuplot version may have left
23     db_purge
24 fi
25
26 # also delete the eventual statoverride (if set)
27 set +e
28 dpkg-statoverride --remove /usr/bin/gnuplot > /dev/null 2>&1
29 set -e
30
31 # ... and finally reset a possibly set suid-flag
32 chmod 755 /usr/bin/gnuplot
33
34 #DEBHELPER#