xref: /unit/pkg/deb/debian/unit.preinst (revision 373)
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        cat <<BANNER
8*373Sdefan@nginx.com----------------------------------------------------------------------
9*373Sdefan@nginx.com
10*373Sdefan@nginx.comThank you for installing NGINX Unit!
11*373Sdefan@nginx.com
12*373Sdefan@nginx.comAdditional modules are available in standalone packages.
13*373Sdefan@nginx.comTo see the available modules, run: apt search --names-only '^unit-'
14*373Sdefan@nginx.com
15*373Sdefan@nginx.comOnline documentation is available at https://unit.nginx.org/
16*373Sdefan@nginx.com
17*373Sdefan@nginx.com----------------------------------------------------------------------
18*373Sdefan@nginx.comBANNER
19*373Sdefan@nginx.com        ;;
20*373Sdefan@nginx.com    upgrade)
21*373Sdefan@nginx.com        ;;
22*373Sdefan@nginx.com
23*373Sdefan@nginx.com    abort-upgrade)
24*373Sdefan@nginx.com        ;;
25*373Sdefan@nginx.com
26*373Sdefan@nginx.com    *)
27*373Sdefan@nginx.com        echo "preinst called with unknown argument \`$1'" >&2
28*373Sdefan@nginx.com        exit 0
29*373Sdefan@nginx.com        ;;
30*373Sdefan@nginx.comesac
31*373Sdefan@nginx.com
32*373Sdefan@nginx.com#DEBHELPER#
33*373Sdefan@nginx.com
34*373Sdefan@nginx.comexit 0
35