|
1 |
#! /bin/sh |
|
|
2 |
# |
3 |
# Univention Showload |
4 |
# preinst script |
5 |
# |
6 |
# Copyright 2004-2010 Univention GmbH |
7 |
# |
8 |
# http://www.univention.de/ |
9 |
# |
10 |
# All rights reserved. |
11 |
# |
12 |
# The source code of this program is made available |
13 |
# under the terms of the GNU Affero General Public License version 3 |
14 |
# (GNU AGPL V3) as published by the Free Software Foundation. |
15 |
# |
16 |
# Binary versions of this program provided by Univention to you as |
17 |
# well as other copyrighted, protected or trademarked materials like |
18 |
# Logos, graphics, fonts, specific documentations and configurations, |
19 |
# cryptographic keys etc. are subject to a license agreement between |
20 |
# you and Univention and not subject to the GNU AGPL V3. |
21 |
# |
22 |
# In the case you use this program under the terms of the GNU AGPL V3, |
23 |
# the program is provided in the hope that it will be useful, |
24 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
25 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
26 |
# GNU Affero General Public License for more details. |
27 |
# |
28 |
# You should have received a copy of the GNU Affero General Public |
29 |
# License with the Debian GNU/Linux or Univention distribution in file |
30 |
# /usr/share/common-licenses/AGPL-3; if not, see |
31 |
# <http://www.gnu.org/licenses/>. |
32 |
# |
33 |
# see: dh_installdeb(1) |
34 |
|
35 |
set -e |
36 |
|
37 |
# summary of how this script can be called: |
38 |
# * <new-preinst> `install' |
39 |
# * <new-preinst> `install' <old-version> |
40 |
# * <new-preinst> `upgrade' <old-version> |
41 |
# * <old-preinst> `abort-upgrade' <new-version> |
42 |
# |
43 |
# for details, see http://www.debian.org/doc/debian-policy/ or |
44 |
# the debian-policy package |
45 |
|
46 |
|
47 |
case "$1" in |
48 |
install|upgrade) |
49 |
# if [ "$1" = "upgrade" ] |
50 |
# then |
51 |
# start-stop-daemon --stop --quiet --oknodo \ |
52 |
# --pidfile /var/run/univention-showload.pid \ |
53 |
# --exec /usr/sbin/univention-showload 2>/dev/null || true |
54 |
# fi |
55 |
;; |
56 |
|
57 |
abort-upgrade) |
58 |
;; |
59 |
|
60 |
*) |
61 |
echo "preinst called with unknown argument \`$1'" >&2 |
62 |
exit 1 |
63 |
;; |
64 |
esac |
65 |
|
66 |
# dh_installdeb will replace this with shell code automatically |
67 |
# generated by other debhelper scripts. |
68 |
|
69 |
#DEBHELPER# |
70 |
|
71 |
exit 0 |
72 |
|
73 |
|