File: postinst

package info (click to toggle)
dfsbuild 0.99.3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 308 kB
  • ctags: 6
  • sloc: haskell: 815; sh: 197; makefile: 99
file content (20 lines) | stat: -rw-r--r-- 509 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# arch-tag: postinst template
# Copyright (c) 2004: John Goerzen, Robert Jordens

set -e

case "$1" in
  configure)
    if which ucf >/dev/null 2>&1; then
      # confmodule, which would normally be loaded by ucf, 
      # somehow resets a lot of options, including
      # three-way. Bug in ucf. Loading debconf before ucf cures this.
      . /usr/share/debconf/confmodule
      ucf --debconf-ok --three-way \
        /usr/share/dfsbuild/dfs.cfg /etc/dfsbuild/dfs.cfg
    fi
  ;;
esac

#DEBHELPER#