annotate debian/preinst @ 396:e144202d2d96 noffle

[svn] updated deb'configuration
author godisch
date Thu, 29 May 2003 15:55:19 +0100
parents 5ec39beae9c5
children b8a73c90bfde
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
1 #!/bin/sh
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
2 # $Id: preinst 459 2003-02-22 21:54:34Z godisch $
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
3
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
4 set -e
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
5
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
6 if [ "$1" = install -o "$1" = upgrade ]; then
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
7 # this directory may still exist because of old lock files,
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
8 # make sure the symlink can be installed
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
9 if [ -d /var/spool/noffle/lock ]; then
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
10 if [ -d /var/lock/noffle ]; then
312
85bf9f705e70 [svn] minor code cleanup
godisch
parents: 301
diff changeset
11 rm -rf /var/spool/noffle/lock
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
12 else
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
13 mv /var/spool/noffle/lock /var/lock/noffle || :
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
14 fi
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
15 fi
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
16 fi
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
17
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
18 exit 0