This file is indexed.

postinst is in freedombox-setup 0.8ubuntu1.

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

set -e

# Avoid etckeeper problem (refuses to commit) because git picked a
# email address with an empty mail domain.
if which etckeeper > /dev/null 2>&1 && \
    [ ! -e /etc/mailname ] &&
    [ "${HOME}" ] &&
    [ -z "$(git config --global --get user.email)" ] ; then
    git config --global user.email "root@localhost"
fi


# Migrate flag file to new inverted logic when upgrading
if dpkg --compare-versions "$2" le "0.0.23" &&
    [ -e /var/freedombox/first-run ] ; then
    rm /var/lib/freedombox/first-run-enable
    rm /var/freedombox/first-run
    rmdir /var/freedombox
fi

# Setup motd
if [ "$1" = "configure" ] && [ -f /etc/motd ] && [ ! -L /etc/motd ] ; then
    mkdir -p /etc/update-motd.d
    echo '#!/bin/sh' > /etc/update-motd.d/80-motd
    echo 'cat <<"EOF"' >> /etc/update-motd.d/80-motd
    cat /etc/motd >> /etc/update-motd.d/80-motd
    echo 'EOF' >> /etc/update-motd.d/80-motd
    chmod +x /etc/update-motd.d/80-motd
    rm /etc/motd
    ln -s ../var/run/motd /etc/motd
fi

# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/freedombox-first-run" ]; then
		update-rc.d freedombox-first-run start 20 2 3 4 5 . >/dev/null || exit $?
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/freedombox-create-uap0" ]; then
		update-rc.d freedombox-create-uap0 start 20 2 3 4 5 . >/dev/null || exit $?
	fi
fi
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/init.d/first-run /etc/init.d/freedombox-first-run 0.0.43 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/init.d/proxy 0.0.43 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/init.d/freedombox-client-proxy 0.0.44 -- "$@"
# End automatically added section