comparison debian/preinst @ 450:a85a0af33718 noffle

[svn] added failure tolerance
author godisch
date Wed, 25 Jun 2003 17:27:55 +0100
parents a299b029c283
children
comparison
equal deleted inserted replaced
449:a299b029c283 450:a85a0af33718
1 #!/bin/sh 1 #!/bin/sh
2 # $Id: preinst 592 2003-06-25 16:25:50Z godisch $ 2 # $Id: preinst 593 2003-06-25 16:27:55Z godisch $
3 3
4 set -e 4 set -e
5 5
6 mkdir -p /etc/news 6 mkdir -p /etc/news
7 7
8 if [ ! -e /etc/news/noffle.conf ]; then 8 if [ ! -e /etc/news/noffle.conf ]; then
9 if [ -e /etc/noffle/conf ]; then 9 if [ -e /etc/noffle/conf ]; then
10 mv -fb /etc/noffle/conf /etc/news/noffle.conf 10 mv -fb /etc/noffle/conf /etc/news/noffle.conf || true
11 elif [ -e /etc/noffle.conf ]; then 11 elif [ -e /etc/noffle.conf ]; then
12 mv -fb /etc/noffle.conf /etc/news/noffle.conf 12 mv -fb /etc/noffle.conf /etc/news/noffle.conf || true
13 fi 13 fi
14 fi 14 fi
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 || true
18 fi 18 fi
19 19
20 if [ -d /etc/noffle ]; then 20 if [ -d /etc/noffle ]; then
21 mv -fb /etc/noffle /etc/news/noffle.old 21 mv -fb /etc/noffle /etc/news/noffle.old || true
22 fi 22 fi
23 23
24 if [ -d /var/spool/noffle/lock ]; then 24 if [ -d /var/spool/noffle/lock ]; then
25 if [ -d /var/lock/noffle ]; then 25 if [ -d /var/lock/noffle ]; then
26 rm -rf /var/spool/noffle/lock 26 rm -rf /var/spool/noffle/lock