summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Longinotti <chtekk@gentoo.org>2006-01-28 01:35:11 +0000
committerLuca Longinotti <chtekk@gentoo.org>2006-01-28 01:35:11 +0000
commit997700542beb2c8ba29a6aa382e580f9edebabb0 (patch)
treecf35bd42eb8fb9c07b58d1c25d47491515ae3671 /eclass/php5_0-sapi.eclass
parentMasking rar as it pulls in a binary only x86 package. (diff)
downloadhistorical-997700542beb2c8ba29a6aa382e580f9edebabb0.tar.gz
historical-997700542beb2c8ba29a6aa382e580f9edebabb0.tar.bz2
historical-997700542beb2c8ba29a6aa382e580f9edebabb0.zip
Fix wrong exitstatus in php-select.
Diffstat (limited to 'eclass/php5_0-sapi.eclass')
-rw-r--r--eclass/php5_0-sapi.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/php5_0-sapi.eclass b/eclass/php5_0-sapi.eclass
index f46822d28adb..76cc4d27645f 100644
--- a/eclass/php5_0-sapi.eclass
+++ b/eclass/php5_0-sapi.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php5_0-sapi.eclass,v 1.13 2006/01/23 18:46:49 chtekk Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php5_0-sapi.eclass,v 1.14 2006/01/28 01:35:11 chtekk Exp $
#
# ########################################################################
#
@@ -591,7 +591,7 @@ php5_0-sapi_pkg_postinst() {
if useq apache ; then
"${ROOT}/usr/sbin/php-select" -t apache1 php5 > /dev/null 2>&1
exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
+ if [[ ${exitStatus} == 2 ]] ; then
php-select apache1 php5
elif [[ ${exitStatus} == 4 ]] ; then
ewarn
@@ -607,7 +607,7 @@ php5_0-sapi_pkg_postinst() {
if useq apache2 ; then
"${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
+ if [[ ${exitStatus} == 2 ]] ; then
php-select apache2 php5
elif [[ ${exitStatus} == 4 ]] ; then
ewarn