Mercurial > noffle
comparison debian/preinst @ 401:b8a73c90bfde noffle
[svn] update
author | godisch |
---|---|
date | Tue, 03 Jun 2003 22:26:47 +0100 |
parents | 5ec39beae9c5 |
children | bfdba1698a58 |
comparison
equal
deleted
inserted
replaced
400:523ab39710d4 | 401:b8a73c90bfde |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # $Id: preinst 459 2003-02-22 21:54:34Z godisch $ | 2 # $Id: preinst 543 2003-06-03 21:26:47Z godisch $ |
3 | 3 |
4 set -e | 4 set -e |
5 | 5 |
6 if [ "$1" = install -o "$1" = upgrade ]; then | 6 if [ -d /var/spool/noffle/lock ]; then |
7 # this directory may still exist because of old lock files, | 7 if [ -d /var/lock/noffle ]; then |
8 # make sure the symlink can be installed | 8 rm -rf /var/spool/noffle/lock |
9 if [ -d /var/spool/noffle/lock ]; then | 9 else |
10 if [ -d /var/lock/noffle ]; then | 10 mv /var/spool/noffle/lock /var/lock/noffle || true |
11 rm -rf /var/spool/noffle/lock | |
12 else | |
13 mv /var/spool/noffle/lock /var/lock/noffle || : | |
14 fi | |
15 fi | 11 fi |
16 fi | 12 fi |
17 | 13 |
18 exit 0 | 14 exit 0 |