Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/debian/postinst
blob: 3f2a30ba04398b5d33f813c85272b552289ace3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# bail on errors
set -e

# try to remove /etc/webcheck contents
if [ -d /etc/webcheck ]
then
  echo -n "Removing /etc/webcheck from old install... "
  rm -f /etc/webcheck/config.py /etc/webcheck/config.py.dpkg-old /etc/webcheck/config.py.dpkg-new || true
  if rmdir /etc/webcheck
  then
    echo "done."
  else
    echo "failed!."
  fi
fi

#DEBHELPER#

exit 0