This file is indexed.

config is in mythexport 2.2.4-0ubuntu2.

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

. /usr/share/debconf/confmodule

db_input high mythexport/warn || true
db_input high mythexport/configs || true

if [ -e /etc/default/mythexport-install ]; then 
    db_set mythexport/dir `grep "dir = " /etc/default/mythexport-install | perl -p -e 's/dir\s=\s//'`
fi

if which mysql >/dev/null; then
    if echo "show databases;" | mysql --defaults-file=/etc/mysql/debian.cnf >/dev/null 2>&1; then
        db_set mythexport/user "debian-sys-maint"
        db_set mythexport/password ""
    else  
        if [ -e /etc/mythtv/mysql.txt ]; then 
            db_set mythexport/user `grep "^DBUserName=" /etc/mythtv/mysql.txt | perl -p -e 's/DBUserName=//'`
            db_set mythexport/password `grep "^DBPassword=" /etc/mythtv/mysql.txt | perl -p -e 's/DBPassword=//'`
            db_set mythexport/host `grep "^DBHostName=" /etc/mythtv/mysql.txt | perl -p -e 's/DBHostName=//'`
            db_set mythexport/dbname `grep "^DBName=" /etc/mythtv/mysql.txt | perl -p -e 's/DBName=//'`
        else
            db_input high mythexport/user || true
            db_input high mythexport/password || true
            db_input high mythexport/host || true
            db_input high mythexport/dbname || true
        fi
	fi
fi

db_input high mythexport/dir || true

db_go

exit 0