Mercurial > noffle
comparison debian/preinst @ 301:3b5b7f3fd71f noffle
[svn] initial debian/ upload
| author | godisch |
|---|---|
| date | Fri, 14 Feb 2003 13:54:32 +0000 |
| parents | |
| children | 85bf9f705e70 |
comparison
equal
deleted
inserted
replaced
| 300:994e9ab2c24f | 301:3b5b7f3fd71f |
|---|---|
| 1 #!/bin/sh | |
| 2 # $Id: preinst 434 2003-02-14 13:54:32Z godisch $ | |
| 3 | |
| 4 set -e | |
| 5 | |
| 6 case "$1" in | |
| 7 install|upgrade) | |
| 8 # this directory may still exist because of old lock files, | |
| 9 # make sure the symlink can be installed | |
| 10 if [ -d /var/spool/noffle/lock ]; then | |
| 11 if [ -d /var/lock/noffle ]; then | |
| 12 rm -rf /var/spool/noffle/lock || : | |
| 13 else | |
| 14 mv /var/spool/noffle/lock /var/lock/noffle || : | |
| 15 fi | |
| 16 fi | |
| 17 ;; | |
| 18 abort-upgrade) | |
| 19 ;; | |
| 20 *) | |
| 21 echo "preinst called with unknown argument '$1'" >&2 | |
| 22 exit 1 | |
| 23 ;; | |
| 24 esac | |
| 25 | |
| 26 exit 0 |
