File: pwman3.preinst

package info (click to toggle)
pwman3 0.12.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 624 kB
  • sloc: python: 3,958; makefile: 218; sh: 65; javascript: 6
file content (31 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

#
# preinst script for pwman3
#

set -e

. /usr/share/debconf/confmodule

previous_version="${2}"

if echo "${previous_version}" | grep -q '^0\.5\.' ; then
    db_get pwman/old_db_format
    action="${RET}"
    if [ "${action}" != "continue" ]; then
        db_fset pwman/old_db_format seen false || true
        db_input critical pwman/old_db_format || true
        db_go
        db_get pwman/old_db_format
        action="${RET}"
    fi

    if [ "${action}" = "abort" ]; then
        exit 1
    fi
fi

#DEBHELPER#

exit 0