447
|
1 #!/bin/sh
|
450
|
2 # $Id: preinst 593 2003-06-25 16:27:55Z godisch $
|
301
|
3
|
|
4 set -e
|
|
5
|
444
|
6 mkdir -p /etc/news
|
|
7
|
|
8 if [ ! -e /etc/news/noffle.conf ]; then
|
449
|
9 if [ -e /etc/noffle/conf ]; then
|
450
|
10 mv -fb /etc/noffle/conf /etc/news/noffle.conf || true
|
444
|
11 elif [ -e /etc/noffle.conf ]; then
|
450
|
12 mv -fb /etc/noffle.conf /etc/news/noffle.conf || true
|
444
|
13 fi
|
|
14 fi
|
|
15
|
|
16 if [ -e /etc/noffle/conf.debian -a ! -e /etc/default/noffle ]; then
|
450
|
17 mv -fb /etc/noffle/conf.debian /etc/default/noffle || true
|
444
|
18 fi
|
|
19
|
446
|
20 if [ -d /etc/noffle ]; then
|
450
|
21 mv -fb /etc/noffle /etc/news/noffle.old || true
|
446
|
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
|