File: config

package info (click to toggle)
movabletype-opensource 4.2.3-1%2Blenny3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 21,268 kB
  • ctags: 15,862
  • sloc: perl: 178,892; php: 26,178; sh: 161; makefile: 82
file content (45 lines) | stat: -rw-r--r-- 1,231 bytes parent folder | download
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
#!/bin/sh
# config maintainer script for movabletype-opensource

#set -x

# source debconf stuff
. /usr/share/debconf/confmodule

if [ -n "$2" ]; then
    if dpkg --compare-versions $2 lt 4.1-5; then
        db_input high movabletype-opensource/umask_warn || true
        db_go
    fi

    UPS_VERSION=`echo $2 | sed -e 's/-.*//'`
    if dpkg --compare-versions $UPS_VERSION lt 4.2~rc4; then
        db_input high movabletype-opensource/schema_upgrade || true
        db_go
        if [ "$RET" = "false" ]; then
            echo "Aborting install";
            db_fset movabletype-opensource/schema_upgrade seen false
            exit 1
        fi
    fi
else
    if [ -x /usr/sbin/apache2ctl ]; then
        db_input medium movabletype-opensource/reload_apache || true
        db_go
    fi
fi

db_input high movabletype-opensource/admin_account_warn || true
db_go
db_get movabletype-opensource/admin_account_warn || true
if [ "$RET" = "false" ]; then
    echo "Aborting install";
    db_fset movabletype-opensource/admin_account_warn seen false
    exit 1
fi

# we support mysql and pgsql
dbc_dbtypes="mysql, pgsql, sqlite"
# source dbconfig-common stuff
. /usr/share/dbconfig-common/dpkg/config 
dbc_go movabletype-opensource $@