This file is indexed.

postinst is in nova-compute-libvirt 2:17.0.1-0ubuntu1.

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
#!/bin/sh -e

if [ "$1" = "configure" ]; then
    # libvirt switched from libvirtd group to libvirt group in 1.3.3
    libvirt_group=$(getent group libvirt) || true
    libvirtd_group=$(getent group libvirtd) || true

    if [ $libvirt_group ]; then
        if ! echo $libvirt_group | grep -qE '\<nova\>'; then
            adduser nova libvirt
        fi
    elif [ $libvirtd_group ]; then
        if ! echo $libvirtd_group | grep -qE '\<nova\>'; then
            adduser nova libvirtd
        fi
    fi
fi