diff options
author | Max Rees <maxcrees@me.com> | 2019-07-22 20:15:07 -0400 |
---|---|---|
committer | Max Rees <maxcrees@me.com> | 2019-07-22 20:15:07 -0400 |
commit | 2707df6cc761dcc2341faa8bafec5b4b4fa33e4d (patch) | |
tree | 9df7c2d2fd84f153634581ff4fb249b98bf34ffa /user/apache-httpd/apache-httpd.initd | |
parent | b7ffaa4d55e1faf4de0f8e6a2edf372fedfeaf71 (diff) | |
download | packages-2707df6cc761dcc2341faa8bafec5b4b4fa33e4d.tar.gz packages-2707df6cc761dcc2341faa8bafec5b4b4fa33e4d.tar.bz2 packages-2707df6cc761dcc2341faa8bafec5b4b4fa33e4d.tar.xz packages-2707df6cc761dcc2341faa8bafec5b4b4fa33e4d.zip |
system/*, user/*: remove bashisms from initd scripts
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}'" |