From mboxrd@z Thu Jan 1 00:00:00 1970 From: kupcevic@sourceware.org Date: 27 Jun 2006 21:46:15 -0000 Subject: [Cluster-devel] conga conga.spec.in.in Message-ID: <20060627214615.2964.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: kupcevic at sourceware.org 2006-06-27 21:46:15 Modified files: . : conga.spec.in.in Log message: Luci upgrade failure fix Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/conga.spec.in.in.diff?cvsroot=cluster&r1=1.9&r2=1.10 --- conga/conga.spec.in.in 2006/06/27 21:15:30 1.9 +++ conga/conga.spec.in.in 2006/06/27 21:46:14 1.10 @@ -146,7 +146,7 @@ if [ "$LUCI_RUNNING" = "0" ]; then /sbin/service luci start >/dev/null 2>$1 fi -if [ "$1" = 0 ]; then +if [ "$1" = "0" ]; then /sbin/service luci stop >/dev/null 2>$1 /sbin/chkconfig --del luci fi @@ -155,6 +155,7 @@ if [ "$1" -ge "1" ]; then /sbin/service luci condrestart > /dev/null 2>&1 fi +exit 0 @@ -259,7 +260,7 @@ fi %preun -n ricci -if [ "$1" = 0 ]; then +if [ "$1" = "0" ]; then /sbin/service ricci stop > /dev/null 2>&1 /sbin/chkconfig --del ricci fi @@ -317,12 +318,12 @@ RUNS=(`runlevel`) RUNLEVEL=${RUNS[1]} STATE=`chkconfig --list ricci-modclusterd | sed -e s,.*\\\t$RUNLEVEL:\\\\\(o[nf]f\\\?\\\\\).*,\\\1,` -if [ $STATE = "on" ]; then +if [ "$STATE" = "on" ]; then /sbin/service ricci-modclusterd restart > /dev/null 2>&1 fi %preun -n ricci-modcluster -if [ "$1" = 0 ]; then +if [ "$1" = "0" ]; then /sbin/service ricci-modclusterd stop > /dev/null 2>&1 /sbin/chkconfig --del ricci-modclusterd fi