diff options
Diffstat (limited to 'user/apache-httpd/apache-httpd.initd')
-rwxr-xr-x | user/apache-httpd/apache-httpd.initd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/user/apache-httpd/apache-httpd.initd b/user/apache-httpd/apache-httpd.initd index c18643735..24be3e172 100755 --- a/user/apache-httpd/apache-httpd.initd +++ b/user/apache-httpd/apache-httpd.initd @@ -114,7 +114,7 @@ fullstatus() { if ! service_started "${SVCNAME}"; then eerror "${SVCNAME} not started" - elif ! type -p $(set -- ${LYNX}; echo $1) 2>&1 >/dev/null; then + elif ! command -v "$(set -- ${LYNX}; printf '%s' "$1")" 2>&1 >/dev/null; then eerror "lynx not installed!" else ${LYNX} ${STATUSURL} @@ -134,7 +134,7 @@ configdump() { if ! service_started "${SVCNAME}"; then eerror "${SVCNAME} not started" - elif ! type -p $(set -- ${LYNX}; echo $1) 2>&1 >/dev/null; then + elif ! command -v "$(set -- ${LYNX}; printf '%s' "$1")" 2>&1 >/dev/null; then eerror "lynx not installed!" else echo "${HTTPD} started with '${HTTPD_OPTS}'" |