summaryrefslogtreecommitdiffstats
path: root/debian/_base/metapackages/trinity-slax/debian/postinst
blob: ca68a2b8eeb9be181f0e1e0dc3cb8ec16a98d934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /bin/sh -e

case "$1" in

    configure)
        [ -d /root/.trinity/share/config ] ||
        mkdir -p /root/.trinity/share/config

        if [ ! -f /root/.trinity/share/config/kdeglobals ]; then
            RELEASE_VERSION="$(/opt/trinity/bin/tde-config --version | sed -n 's|^TDE: ||p')"
            /opt/trinity/bin/kwriteconfig --file /root/.trinity/share/config/kdeglobals \
                --group "Release Notes" \
                --key "$RELEASE_VERSION" \
                --type bool "true"
        fi
        if [ ! -f /root/.trinity/share/config/kpersonalizerrc ]; then
            /opt/trinity/bin/kwriteconfig --file /root/.trinity/share/config/kpersonalizerrc \
                --group "General" \
                --key "FirstLogin" \
                --type bool "false"
        fi
    ;;

    abort-upgrade)
    ;;

    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 1
    ;;

esac

#DEBHELPER#

exit 0