446
|
1 #!/bin/sh -x
|
|
2 # $Id: preinst 589 2003-06-25 16:13:35Z godisch $
|
301
|
3
|
|
4 set -e
|
|
5
|
444
|
6 mkdir -p /etc/news
|
|
7
|
|
8 if [ ! -e /etc/news/noffle.conf ]; then
|
|
9 if [ -e /etc/noffle/noffle.conf ]; then
|
|
10 mv -fb /etc/noffle/noffle.conf /etc/news
|
|
11 elif [ -e /etc/noffle.conf ]; then
|
|
12 mv -fb /etc/noffle.conf /etc/news
|
|
13 fi
|
|
14 fi
|
|
15
|
|
16 if [ -e /etc/noffle/conf.debian -a ! -e /etc/default/noffle ]; then
|
|
17 mv -fb /etc/noffle/conf.debian /etc/default/noffle
|
|
18 fi
|
|
19
|
446
|
20 if [ -d /etc/noffle ]; then
|
|
21 mv -fb /etc/noffle /etc/news/noffle.old
|
|
22 fi
|
444
|
23
|
401
|
24 if [ -d /var/spool/noffle/lock ]; then
|
|
25 if [ -d /var/lock/noffle ]; then
|
|
26 rm -rf /var/spool/noffle/lock
|
|
27 else
|
|
28 mv /var/spool/noffle/lock /var/lock/noffle || true
|
301
|
29 fi
|
324
|
30 fi
|
301
|
31
|
|
32 exit 0
|