aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/packages/deb/ubuntu-bionic/debian/tigervncserver.postinst.in
blob: 2491329161f0a23c2dcabdc8197be9c4b75beba3 (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
37
38
#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
    MAN=/usr/share/man
    BIN=/usr/bin
    SBIN=/usr/sbin
    LIB=/usr/lib/@DEB_HOST_MULTIARCH@
    update-alternatives --install \
       $SBIN/vncsession          vncsession      $SBIN/tigervncsession 64 \
       --slave \
       $LIB/vncserver            vncserver       $LIB/tigervncserver \
       --slave \
       $MAN/man8/vncsession.8.gz vncsession.8.gz $MAN/man8/tigervncsession.8.gz \
       --slave \
       $MAN/man8/vncserver.8.gz  vncserver.8.gz  $MAN/man8/tigervncserver.8.gz
    update-alternatives --install \
       $BIN/Xvnc            Xvnc            $BIN/Xtigervnc 74 \
       --slave \
       $MAN/man1/Xvnc.1.gz  Xvnc.1.gz       $MAN/man1/Xtigervnc.1.gz
    update-alternatives --install \
       $BIN/x0vncserver           x0vncserver     $BIN/x0tigervncserver 74 \
       --slave \
       $MAN/man1/x0vncserver.1.gz x0vncserver.1.gz $MAN/man1/x0tigervncserver.1.gz
    update-alternatives --install \
       $BIN/vncpasswd           vncpasswd            $BIN/tigervncpasswd 74 \
       --slave \
       $MAN/man1/vncpasswd.1.gz vncpasswd.1.gz       $MAN/man1/tigervncpasswd.1.gz
    update-alternatives --install \
       $BIN/vncconfig           vncconfig       $BIN/tigervncconfig 64 \
       --slave \
       $MAN/man1/vncconfig.1.gz vncconfig.1.gz  $MAN/man1/tigervncconfig.1.gz
fi

#DEBHELPER#

exit 0