This file is indexed.

postinst is in aodh-common 2.0.0-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
    if ! getent group aodh > /dev/null 2>&1; then
        addgroup --system aodh >/dev/null
    fi

    if ! getent passwd aodh > /dev/null 2>&1; then
        adduser --system --home /var/lib/aodh --ingroup aodh --no-create-home --shell /bin/false aodh
    fi

    chown -R aodh:adm /var/log/aodh
    chmod 0750 /var/log/aodh
    chown -R aodh:aodh /var/lib/aodh /etc/aodh

    sed -i 's|#connection[ \t]*=.*|connection=mongodb://localhost:27017/aodh|' /etc/aodh/aodh.conf
fi