xref: /unit/pkg/deb/debian.module/preinst.in (revision 373:b09757e4984e)
1*373Sdefan@nginx.com#!/bin/sh
2*373Sdefan@nginx.com
3*373Sdefan@nginx.comset -e
4*373Sdefan@nginx.com
5*373Sdefan@nginx.comcase "$1" in
6*373Sdefan@nginx.com    install)
7*373Sdefan@nginx.com%%MODULE_POST%%
8*373Sdefan@nginx.com        ;;
9*373Sdefan@nginx.com    upgrade)
10*373Sdefan@nginx.com        ;;
11*373Sdefan@nginx.com    abort-upgrade)
12*373Sdefan@nginx.com        ;;
13*373Sdefan@nginx.com    *)
14*373Sdefan@nginx.com        echo "preinst called with unknown argument \`$1'" >&2
15*373Sdefan@nginx.com        exit 0
16*373Sdefan@nginx.com        ;;
17*373Sdefan@nginx.comesac
18*373Sdefan@nginx.com
19*373Sdefan@nginx.com#DEBHELPER#
20*373Sdefan@nginx.com
21*373Sdefan@nginx.comexit 0
22