summaryrefslogtreecommitdiff
path: root/user/apache-httpd/apache-httpd.initd
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-07-24 05:54:10 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-07-24 05:54:10 +0000
commitbed7a51ed2c79f05cb1cf4708d4e128cfb23133a (patch)
treeec42f502556c869d54bc511d1c8f3248db80d566 /user/apache-httpd/apache-httpd.initd
parent6574a30b9b98a3464ff4cebe381b3732a8dabfc3 (diff)
parentd88486a76bb0d6bafb97fc9f0b5ae909f61b18e8 (diff)
downloadpackages-bed7a51ed2c79f05cb1cf4708d4e128cfb23133a.tar.gz
packages-bed7a51ed2c79f05cb1cf4708d4e128cfb23133a.tar.bz2
packages-bed7a51ed2c79f05cb1cf4708d4e128cfb23133a.tar.xz
packages-bed7a51ed2c79f05cb1cf4708d4e128cfb23133a.zip
Merge branch 'openrc-bashisms' into 'master'
Cleanup OpenRC init.d scripts, and more See merge request adelie/packages!295
Diffstat (limited to 'user/apache-httpd/apache-httpd.initd')
-rwxr-xr-xuser/apache-httpd/apache-httpd.initd4
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}'"