comparison debian/preinst @ 312:85bf9f705e70 noffle

[svn] minor code cleanup
author godisch
date Wed, 19 Feb 2003 19:06:45 +0000
parents 3b5b7f3fd71f
children 5ec39beae9c5
comparison
equal deleted inserted replaced
311:7c6035f8656f 312:85bf9f705e70
1 #!/bin/sh 1 #!/bin/sh
2 # $Id: preinst 434 2003-02-14 13:54:32Z godisch $ 2 # $Id: preinst 446 2003-02-19 19:06:45Z godisch $
3 3
4 set -e 4 set -e
5 5
6 case "$1" in 6 case "$1" in
7 install|upgrade) 7 install|upgrade)
8 # this directory may still exist because of old lock files, 8 # this directory may still exist because of old lock files,
9 # make sure the symlink can be installed 9 # make sure the symlink can be installed
10 if [ -d /var/spool/noffle/lock ]; then 10 if [ -d /var/spool/noffle/lock ]; then
11 if [ -d /var/lock/noffle ]; then 11 if [ -d /var/lock/noffle ]; then
12 rm -rf /var/spool/noffle/lock || : 12 rm -rf /var/spool/noffle/lock
13 else 13 else
14 mv /var/spool/noffle/lock /var/lock/noffle || : 14 mv /var/spool/noffle/lock /var/lock/noffle || :
15 fi 15 fi
16 fi 16 fi
17 ;; 17 ;;