summaryrefslogtreecommitdiff
path: root/www/apache6
diff options
context:
space:
mode:
authorjlam <jlam>2002-02-05 06:04:36 +0000
committerjlam <jlam>2002-02-05 06:04:36 +0000
commit4439373ee4f9c486f6da66c6ea41514f0f01f480 (patch)
tree910b301d9e99bea4118f547f996c86cbedac39fc /www/apache6
parent4780e284a6f50549d7913ba2934fd612787266da (diff)
downloadpkgsrc-4439373ee4f9c486f6da66c6ea41514f0f01f480.tar.gz
Solaris' test binary (test/[) doesn't grok "-e". Replace with "-f".
Noted by Stoned Elipot <seb@netbsd.org> in private email.
Diffstat (limited to 'www/apache6')
-rw-r--r--www/apache6/files/apache.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/www/apache6/files/apache.sh b/www/apache6/files/apache.sh
index 5c56ae0dd06..74d2fa9abec 100644
--- a/www/apache6/files/apache.sh
+++ b/www/apache6/files/apache.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: apache.sh,v 1.11 2001/12/26 22:03:38 jlam Exp $
+# $NetBSD: apache.sh,v 1.12 2002/02/05 06:04:42 jlam Exp $
#
# PROVIDE: apache
# REQUIRE: DAEMON
@@ -9,7 +9,7 @@
# To start apache at startup, copy this script to /etc/rc.d and set
# apache=YES in /etc/rc.conf.
-if [ -e /etc/rc.subr ]
+if [ -f /etc/rc.subr ]
then
. /etc/rc.subr
fi
@@ -31,7 +31,7 @@ start_cmd="${ctl_command} ${apache_start}"
stop_cmd="${ctl_command} stop"
restart_cmd="${ctl_command} restart"
-if [ -e /etc/rc.subr ]
+if [ -f /etc/rc.subr ]
then
load_rc_config $name
run_rc_command "$1"