Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/ocsigen/files: ocsigen.initd
Date: Thu, 25 Sep 2008 12:42:44
Message-Id: E1KiqB7-0005Of-HZ@stork.gentoo.org
1 aballier 08/09/25 12:42:41
2
3 Modified: ocsigen.initd
4 Log:
5 remove bashisms from init script
6 (Portage version: 2.2_rc9/cvs/Linux 2.6.26.5 x86_64)
7
8 Revision Changes Path
9 1.3 www-servers/ocsigen/files/ocsigen.initd
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/ocsigen/files/ocsigen.initd?rev=1.3&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/ocsigen/files/ocsigen.initd?rev=1.3&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/ocsigen/files/ocsigen.initd?r1=1.2&r2=1.3
14
15 Index: ocsigen.initd
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/www-servers/ocsigen/files/ocsigen.initd,v
18 retrieving revision 1.2
19 retrieving revision 1.3
20 diff -u -r1.2 -r1.3
21 --- ocsigen.initd 4 May 2007 14:17:43 -0000 1.2
22 +++ ocsigen.initd 25 Sep 2008 12:42:41 -0000 1.3
23 @@ -11,11 +11,11 @@
24
25
26 checkconfig() {
27 - if [[ ! -f $DAEMON ]] ; then
28 + if [ ! -f "$DAEMON" ] ; then
29 ewarn "Unable to find $DAEMON"
30 return 1
31 fi
32 - if [[ ! -f $CONF ]] ; then
33 + if [ ! -f "$CONF" ] ; then
34 ewarn $CONF " does not exist."
35 return 1
36 fi
37 @@ -39,7 +39,7 @@
38 }
39
40 reload() {
41 - if [[ ! -f $PIDFILE ]] ; then
42 + if [ ! -f "$PIDFILE" ] ; then
43 ewarn "$PIDFILE not found!!"
44 ewarn "Ocsigen is not running. Not reloading."
45 return 1