Mercurial > noffle
comparison debian/preinst @ 446:cd2efc06a6e1 noffle
[svn] added test -d
author | godisch |
---|---|
date | Wed, 25 Jun 2003 17:13:35 +0100 |
parents | bfdba1698a58 |
children | ad3c49db15a3 |
comparison
equal
deleted
inserted
replaced
445:0a5e33528ec1 | 446:cd2efc06a6e1 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh -x |
2 # $Id: preinst 587 2003-06-25 15:58:44Z godisch $ | 2 # $Id: preinst 589 2003-06-25 16:13:35Z godisch $ |
3 | 3 |
4 set -e | 4 set -e |
5 | 5 |
6 mkdir -p /etc/news | 6 mkdir -p /etc/news |
7 | 7 |
15 | 15 |
16 if [ -e /etc/noffle/conf.debian -a ! -e /etc/default/noffle ]; then | 16 if [ -e /etc/noffle/conf.debian -a ! -e /etc/default/noffle ]; then |
17 mv -fb /etc/noffle/conf.debian /etc/default/noffle | 17 mv -fb /etc/noffle/conf.debian /etc/default/noffle |
18 fi | 18 fi |
19 | 19 |
20 mv /etc/noffle /etc/news/noffle.old | 20 if [ -d /etc/noffle ]; then |
21 mv -fb /etc/noffle /etc/news/noffle.old | |
22 fi | |
21 | 23 |
22 if [ -d /var/spool/noffle/lock ]; then | 24 if [ -d /var/spool/noffle/lock ]; then |
23 if [ -d /var/lock/noffle ]; then | 25 if [ -d /var/lock/noffle ]; then |
24 rm -rf /var/spool/noffle/lock | 26 rm -rf /var/spool/noffle/lock |
25 else | 27 else |