This file is indexed.

postinst is in mythtv-status 0.10.4-1.

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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/bin/sh
# postinst script for mythtv-status
#
# see: dh_installdeb(1)

PACKAGE=mythtv-status

. /usr/share/debconf/confmodule

set -e

case "$1" in
  configure|reconfigure)
    DEBIANCONFIG=/etc/default/$PACKAGE

    # Default to --email-only-on-alert but allow it be unset in the config file.
    EMAIL_ARGS="--email-only-on-alert"

    # load current settings, most of which will be overwritten.
    [ -f $DEBIANCONFIG ] && . $DEBIANCONFIG

    db_get $PACKAGE/host
    HOST="${RET:-localhost}"

    db_get $PACKAGE/enable
    RUN="${RET:-true}"

    if [ $RUN = 'true' ]
    then
      RUN='yes'
    fi

    db_get $PACKAGE/email
    EMAIL="${RET:-none}"

    cat <<_eof > $DEBIANCONFIG
# $PACKAGE Debian configuration
#
# You can run 'dpkg-reconfigure $PACKAGE' to modify the values in this
# file, if you want. You can also change the values here and changes will
# be preserved.  But other changes will not be preserved.
#
# Do note that only the values are preserved; the rest of the file is
# rewritten.
#

# HOST:
#  What host should we check the status on?
HOST=$HOST

########################################################################
# The following settings are used by /etc/init.d/mythtv-status script  #
# to update the MOTD.                                                  #
########################################################################

# RUN:
#  Should we actually run and update the MOTD?
RUN=$RUN

# ARGS:
#  Any extra arguments to pass to mythtv-status (i.e., -e and/or -d).
ARGS="$ARGS"

########################################################################
# The following settings are used by the /etc/cron.daily/mythtv-status #
# script when generating the daily status email report.                #
########################################################################

# EMAIL:
#  A comma separated list of email address to send status emails to.
#
#  Set to none (or leave empty) to disable daily emails.
EMAIL=$EMAIL

# EMAIL_ARGS:
#  Command line arguments that are used when sending the daily email.
EMAIL_ARGS="$EMAIL_ARGS"
_eof

    db_stop
  ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

# Automatically added by dh_installinit
if [ -x "/etc/init.d/mythtv-status" ] || [ -e "/etc/init/mythtv-status.conf" ]; then
	if [ ! -e "/etc/init/mythtv-status.conf" ]; then
		update-rc.d mythtv-status defaults 51 >/dev/null
	fi
	invoke-rc.d mythtv-status start || exit $?
fi
# End automatically added section


exit 0