]> git.proxmox.com Git - vzctl.git/blob - debian/vzctl.preinst
initial import from svn
[vzctl.git] / debian / vzctl.preinst
1 #! /bin/sh
2 # preinst script for vzctl
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 # summary of how this script can be called:
9 # * <new-preinst> `install'
10 # * <new-preinst> `install' <old-version>
11 # * <new-preinst> `upgrade' <old-version>
12 # * <old-preinst> `abort-upgrade' <new-version>
13 #
14 # for details, see http://www.debian.org/doc/debian-policy/ or
15 # the debian-policy package
16
17 case "$1" in
18 install|upgrade)
19
20 # older version installed a symbolic link, we need to remove
21 # that - else dpkg does not install the new version
22 if [ -L "/etc/network/if-up.d/vzifup-post" ]; then
23 rm -f "/etc/network/if-up.d/vzifup-post"
24 fi
25
26 # compability mode /var/lib/vz -> /vz
27 # ln -sT /var/lib/vz vz 2>/dev/null || true
28 # echo "Add a link from /var/lib/vz to /vz/"
29 ;;
30 abort-upgrade)
31 ;;
32 *)
33 echo "preinst called with unknown argument \`$1'" >&2
34 exit 1
35 ;;
36 esac
37
38 # dh_installdeb will replace this with shell code automatically
39 # generated by other debhelper scripts.
40
41 #DEBHELPER#
42
43 exit 0