comparison debian/preinst @ 324:5ec39beae9c5 noffle

[svn] cleanup
author godisch
date Sat, 22 Feb 2003 21:54:34 +0000
parents 85bf9f705e70
children b8a73c90bfde
comparison
equal deleted inserted replaced
323:67ce1ddf7313 324:5ec39beae9c5
1 #!/bin/sh 1 #!/bin/sh
2 # $Id: preinst 446 2003-02-19 19:06:45Z godisch $ 2 # $Id: preinst 459 2003-02-22 21:54:34Z godisch $
3 3
4 set -e 4 set -e
5 5
6 case "$1" in 6 if [ "$1" = install -o "$1" = upgrade ]; then
7 install|upgrade)
8 # this directory may still exist because of old lock files, 7 # this directory may still exist because of old lock files,
9 # make sure the symlink can be installed 8 # make sure the symlink can be installed
10 if [ -d /var/spool/noffle/lock ]; then 9 if [ -d /var/spool/noffle/lock ]; then
11 if [ -d /var/lock/noffle ]; then 10 if [ -d /var/lock/noffle ]; then
12 rm -rf /var/spool/noffle/lock 11 rm -rf /var/spool/noffle/lock
13 else 12 else
14 mv /var/spool/noffle/lock /var/lock/noffle || : 13 mv /var/spool/noffle/lock /var/lock/noffle || :
15 fi 14 fi
16 fi 15 fi
17 ;; 16 fi
18 abort-upgrade)
19 ;;
20 *)
21 echo "preinst called with unknown argument '$1'" >&2
22 exit 1
23 ;;
24 esac
25 17
26 exit 0 18 exit 0