File: postinst

package info (click to toggle)
ucf 3.0052
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,204 kB
  • sloc: sh: 1,384; perl: 397; makefile: 31
file content (17 lines) | stat: -rw-r--r-- 448 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh
# Abort if any command returns an error value
set -e

case "$1" in
    configure)
	# Tell ucf that the file in /usr/share/foo is the latest
	# maintainer version, and let it handle how to manage the real
	# confuguration file in /etc. This is how a static configuration
	# file can be handled:
	ucf /usr/share/foo/configuration /etc/foo.conf
	# Register the package foo as the owner of the file.
	ucfr foo /etc/foo.conf
	;;
esac

exit 0