source: lmd/trunk/fuentes/debian/lmd-server.preinst @ 3003

Last change on this file since 3003 was 392, checked in by hectorgh, 5 years ago

adding project files

File size: 1.0 KB
Line 
1#!/bin/sh
2# preinst script for kk
3#
4# see: dh_installdeb(1)
5
6set -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# for details, see http://www.debian.org/doc/debian-policy/ or
14# the debian-policy package
15
16
17case "$1" in
18    install|upgrade)
19        if dpkg --compare-versions "$2" lt 2.1; then
20                if [ -L /var/www/ipxeboot ]; then
21                        RESULT=$(readlink -f /var/www/ipxeboot);
22                        if [ "$RESULT" = "/usr/share/lmd-server/www-boot" ]; then
23                                rm /var/www/ipxeboot
24                        fi
25                fi                     
26                if [ -e /etc/dnsmasq.d/ltsp-server.conf ]; then
27                        rm /etc/dnsmasq.d/ltsp-server.conf || true
28                fi
29        fi
30    ;;
31
32    abort-upgrade)
33    ;;
34
35    *)
36        echo "preinst called with unknown argument \`$1'" >&2
37        exit 1
38    ;;
39esac
40
41# dh_installdeb will replace this with shell code automatically
42# generated by other debhelper scripts.
43
44#DEBHELPER#
45
46exit 0
Note: See TracBrowser for help on using the repository browser.