File: libaqbanking-data.postinst

package info (click to toggle)
libaqbanking 5.4.3beta-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,244 kB
  • ctags: 6,703
  • sloc: ansic: 119,813; sh: 11,218; xml: 9,839; makefile: 2,357; cpp: 2,233; perl: 278; pascal: 115
file content (19 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh

set -e

case "$1" in
    configure)
        # On upgrades from AqBanking 2.x the directory /usr/share/aqhbci/xml
        # cannot be replaced by the symlink provided in this package. Thus
        # ensure here that /usr/share/aqhbci/xml is a symlink to the new
        # location of hbci.xml (this makes libaqbanking-data usable by
        # AqBanking 2.x too).
        if [ -d /usr/share/aqhbci/xml -a ! -L /usr/share/aqhbci/xml ]; then
            rmdir /usr/share/aqhbci/xml
            ln -s ../aqbanking/backends/aqhbci /usr/share/aqhbci/xml
        fi
    ;;
esac

#DEBHELPER#