Debian Codegraph @

debian/libkysdk-base.postinst

raw
1 #!/bin/sh
2 set -e
3 #DEBHELPER#
4
5 if [ "$1" = configure ] && [ -n "$2" ] && \
6 dpkg --compare-versions "$2" lt 3.0.1.2-4~; then
7 rm -f -- /etc/kylin-config/systembus.log
8 fi
9
10 # conf2-compile
11 if [ -f /etc/systemd/system/multi-user.target.wants/conf2-update-db.service ]; then
12 rm /etc/systemd/system/multi-user.target.wants/conf2-update-db.service
13 fi
14 if [ -e /usr/bin/kconf2-editor ]; then
15 if [ ! -L /usr/bin/kconf2-editor ]; then
16 rm /usr/bin/kconf2-editor
17 ln -s /usr/share/kysdk/kysdk-base/kconf2-editor /usr/bin/kconf2-editor;
18 fi
19 fi