/[fai]/trunk/debian/preinst
ViewVC logotype

Contents of /trunk/debian/preinst

Parent Directory Parent Directory | Revision Log Revision Log


Revision 945 - (hide annotations) (download)
Thu Jan 3 16:46:28 2002 UTC (11 years, 5 months ago) by lange
File size: 858 byte(s)
handle old /etc/fai.conf and new /etc/fai/fai.conf file
1 lange 945 #! /bin/sh
2     # preinst script for fai
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 /usr/share/doc/packaging-manual/
15    
16     case "$1" in
17     upgrade)
18    
19     if [ -e /etc/fai.conf -a ! -e /etc/fai/fai.conf ]; then
20     echo "Moving old /etc/fai.conf to new location /etc/fai/fai.conf"
21     mkdir /etc/fai
22     cp -p /etc/fai.conf /etc/fai/fai.conf
23     fi
24    
25     ;;
26    
27     abort-upgrade)
28     rm -f /etc/fai/fai.conf
29     ;;
30    
31     *)
32     echo "preinst called with unknown argument \`$1'" >&2
33     exit 1
34     ;;
35     esac
36    
37     # dh_installdeb will replace this with shell code automatically
38     # generated by other debhelper scripts.
39    
40     #DEBHELPER#
41    
42     exit 0
43    
44    

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5