This file is indexed.

postinst is in openstack-dashboard 3:13.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
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
# vim: set ts=2 et:

set -e

CONF="openstack-dashboard.conf"

if [ "$1" = "configure" ]; then

  if ! getent group horizon > /dev/null 2>&1 ; then
    addgroup --system horizon >/dev/null
  fi

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

  (
    cd /usr/share/openstack-dashboard
    echo "Collecting and compressing static assets..."
    rm -rf /var/lib/openstack-dashboard/static/ || :
    python manage.py collectstatic --noinput 2>&1 > /dev/null
    python manage.py compress --force 2>&1 > /dev/null
  )

  if [ -e /var/lib/openstack-dashboard ] ; then
    chown -R horizon:horizon /var/lib/openstack-dashboard
  fi

  if [ -d /etc/openstack-dashboard/ ] ; then
    chown root:horizon /etc/openstack-dashboard/
    chmod 0750 /etc/openstack-dashboard/
  fi

  if [ -f /etc/openstack-dashboard/local_settings.py ]; then
    chown root:horizon /etc/openstack-dashboard/local_settings.py
    chmod 0640 /etc/openstack-dashboard/local_settings.py
  fi

  # apache 2.4
  if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
      . /usr/share/apache2/apache2-maintscript-helper
  fi
  apache2_invoke enconf $CONF || exit $?

fi


# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
	pycompile -p openstack-dashboard /usr/share/openstack-dashboard
fi

# End automatically added section