This file is indexed.

postinst is in ltsp-cluster-nxloadbalancer 2.0.3-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
#!/bin/sh

set -e

if [ "$1" = "configure" ];
then
    if [ -z "$(getent passwd nx)" ]; then
        adduser --system --shell /usr/bin/ltsp-cluster-nxloadbalancer --home /var/lib/ltsp-cluster-nxloadbalancer/ --disabled-password --gecos "NX user" --group nx
    fi
    mkdir -p /var/lib/ltsp-cluster-nxloadbalancer/.ssh/
    cp /usr/share/nx/keys/* /var/lib/ltsp-cluster-nxloadbalancer/.ssh/
    chown nx:nx -R /var/lib/ltsp-cluster-nxloadbalancer/
    chmod 600 /var/lib/ltsp-cluster-nxloadbalancer/.ssh/*
fi