annotate debian/preinst @ 456:7e0c7dd29d53 noffle

[svn] removed doubled lock dir removal
author godisch
date Wed, 25 Jun 2003 18:00:10 +0100
parents a85a0af33718
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
447
ad3c49db15a3 [svn] removed debug switch
godisch
parents: 446
diff changeset
1 #!/bin/sh
450
a85a0af33718 [svn] added failure tolerance
godisch
parents: 449
diff changeset
2 # $Id: preinst 593 2003-06-25 16:27:55Z godisch $
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
3
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
4 set -e
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
5
444
bfdba1698a58 [svn] update
godisch
parents: 401
diff changeset
6 mkdir -p /etc/news
bfdba1698a58 [svn] update
godisch
parents: 401
diff changeset
7
bfdba1698a58 [svn] update
godisch
parents: 401
diff changeset
8 if [ ! -e /etc/news/noffle.conf ]; then
449
a299b029c283 [svn] fixed transition pathname
godisch
parents: 448
diff changeset
9 if [ -e /etc/noffle/conf ]; then
450
a85a0af33718 [svn] added failure tolerance
godisch
parents: 449
diff changeset
10 mv -fb /etc/noffle/conf /etc/news/noffle.conf || true
444
bfdba1698a58 [svn] update
godisch
parents: 401
diff changeset
11 elif [ -e /etc/noffle.conf ]; then
450
a85a0af33718 [svn] added failure tolerance
godisch
parents: 449
diff changeset
12 mv -fb /etc/noffle.conf /etc/news/noffle.conf || true
444
bfdba1698a58 [svn] update
godisch
parents: 401
diff changeset
13 fi
bfdba1698a58 [svn] update
godisch
parents: 401
diff changeset
14 fi
bfdba1698a58 [svn] update
godisch
parents: 401
diff changeset
15
bfdba1698a58 [svn] update
godisch
parents: 401
diff changeset
16 if [ -e /etc/noffle/conf.debian -a ! -e /etc/default/noffle ]; then
450
a85a0af33718 [svn] added failure tolerance
godisch
parents: 449
diff changeset
17 mv -fb /etc/noffle/conf.debian /etc/default/noffle || true
444
bfdba1698a58 [svn] update
godisch
parents: 401
diff changeset
18 fi
bfdba1698a58 [svn] update
godisch
parents: 401
diff changeset
19
446
cd2efc06a6e1 [svn] added test -d
godisch
parents: 444
diff changeset
20 if [ -d /etc/noffle ]; then
450
a85a0af33718 [svn] added failure tolerance
godisch
parents: 449
diff changeset
21 mv -fb /etc/noffle /etc/news/noffle.old || true
446
cd2efc06a6e1 [svn] added test -d
godisch
parents: 444
diff changeset
22 fi
444
bfdba1698a58 [svn] update
godisch
parents: 401
diff changeset
23
401
b8a73c90bfde [svn] update
godisch
parents: 324
diff changeset
24 if [ -d /var/spool/noffle/lock ]; then
b8a73c90bfde [svn] update
godisch
parents: 324
diff changeset
25 if [ -d /var/lock/noffle ]; then
b8a73c90bfde [svn] update
godisch
parents: 324
diff changeset
26 rm -rf /var/spool/noffle/lock
b8a73c90bfde [svn] update
godisch
parents: 324
diff changeset
27 else
b8a73c90bfde [svn] update
godisch
parents: 324
diff changeset
28 mv /var/spool/noffle/lock /var/lock/noffle || true
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
29 fi
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
30 fi
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
31
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
32 exit 0