# HG changeset patch # User godisch # Date 1054675607 -3600 # Node ID b8a73c90bfdeb3743f99592884932e794fcbfc8c # Parent 523ab39710d4042831e6b5844b8089ec539761f7 [svn] update diff -r 523ab39710d4 -r b8a73c90bfde debian/preinst --- a/debian/preinst Tue Jun 03 22:22:55 2003 +0100 +++ b/debian/preinst Tue Jun 03 22:26:47 2003 +0100 @@ -1,17 +1,13 @@ #!/bin/sh -# $Id: preinst 459 2003-02-22 21:54:34Z godisch $ +# $Id: preinst 543 2003-06-03 21:26:47Z godisch $ set -e -if [ "$1" = install -o "$1" = upgrade ]; then - # this directory may still exist because of old lock files, - # make sure the symlink can be installed - if [ -d /var/spool/noffle/lock ]; then - if [ -d /var/lock/noffle ]; then - rm -rf /var/spool/noffle/lock - else - mv /var/spool/noffle/lock /var/lock/noffle || : - fi +if [ -d /var/spool/noffle/lock ]; then + if [ -d /var/lock/noffle ]; then + rm -rf /var/spool/noffle/lock + else + mv /var/spool/noffle/lock /var/lock/noffle || true fi fi