This file is indexed.

postinst is in ntopng-data 3.2+dfsg1-1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

# Starting from version 2.0+dfsg1-1, BOOTSTRAP_DIR cwhas been replaced with a
# symlink. Because dpkg will not replace a directory with a symlink, we need to
# do that by hand.

BOOTSTRAP_DIR=/usr/share/ntopng/httpdocs/bootstrap
BOOTSTRAP_OLD_DIR=${BOOTSTRAP_DIR}.dpkg-old

if [ \( "$1" = "configure" -o "$1" = "abort-upgrade" \) \
        -a -d $BOOTSTRAP_DIR -a ! -L $BOOTSTRAP_DIR ]; then
    # The unpacking performed by dpkg should have left the directory empty.
    # If it is not empty, let's back it up.
    rmdir $BOOTSTRAP_DIR 2> /dev/null || mv $BOOTSTRAP_DIR $BOOTSTRAP_OLD_DIR
    ln -s ../../javascript/bootstrap $BOOTSTRAP_DIR
fi