File: preinst

package info (click to toggle)
jabber-querybot 0.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 188 kB
  • ctags: 40
  • sloc: perl: 1,136; sh: 12; makefile: 2
file content (18 lines) | stat: -rwxr-xr-x 358 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

# Can be removed, when 0.0.5.1-1 is migrated to stable.
case "$1" in
  upgrade)
    if dpkg --compare-versions "$2" lt 0.0.5.1-1; then
      if [ /etc/jabber-querybot/Querymodule.pm -ef
/usr/share/doc/jabber-querybot/examples/Testbot.pm ];
      then
        rm /etc/jabber-querybot/Querymodule.pm
      fi
    fi
  ;;
esac

##DEBHELPER##