summaryrefslogtreecommitdiff
path: root/www
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
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')
-rw-r--r--www/apache/files/apache.sh6
-rw-r--r--www/apache6/files/apache.sh6
-rw-r--r--www/thttpd/files/thttpd.sh6
3 files changed, 9 insertions, 9 deletions
diff --git a/www/apache/files/apache.sh b/www/apache/files/apache.sh
index 7e5db5799bc..3b69568e607 100644
--- a/www/apache/files/apache.sh
+++ b/www/apache/files/apache.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: apache.sh,v 1.15 2001/12/26 22:03:38 jlam Exp $
+# $NetBSD: apache.sh,v 1.16 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"
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"
diff --git a/www/thttpd/files/thttpd.sh b/www/thttpd/files/thttpd.sh
index cb2a13f612f..bd5fb502b4e 100644
--- a/www/thttpd/files/thttpd.sh
+++ b/www/thttpd/files/thttpd.sh
@@ -1,11 +1,11 @@
#!/bin/sh
#
-# $NetBSD: thttpd.sh,v 1.7 2001/11/26 07:34:08 jlam Exp $
+# $NetBSD: thttpd.sh,v 1.8 2002/02/05 06:04:43 jlam Exp $
#
# PROVIDE: thttpd
# REQUIRE: DAEMON
-if [ -e /etc/rc.subr ]
+if [ -f /etc/rc.subr ]
then
. /etc/rc.subr
fi
@@ -16,7 +16,7 @@ command=@PREFIX@/sbin/${name}
command_args="-C @PKG_SYSCONFDIR@/${name}.conf"
required_files="@PKG_SYSCONFDIR@/${name}.conf"
-if [ -e /etc/rc.subr ]
+if [ -f /etc/rc.subr ]
then
load_rc_config $name
run_rc_command "$1"