diff options
author | Tomáš Mózes <hydrapolic@gmail.com> | 2018-04-19 22:49:27 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2018-04-19 22:49:27 +0200 |
commit | 65a60b84f492efeb391e853724c12c0b78b2aa25 (patch) | |
tree | de69868970d830679503e3eb6ac3687da496bc30 /2.4/init | |
parent | 2.4/init/apache2.initd: Start after entropy daemon if available. (diff) | |
download | apache-65a60b84f492efeb391e853724c12c0b78b2aa25.tar.gz apache-65a60b84f492efeb391e853724c12c0b78b2aa25.tar.bz2 apache-65a60b84f492efeb391e853724c12c0b78b2aa25.zip |
init scripts: Replaced non-POSIX compliant "type -p" calls.
Closes: https://bugs.gentoo.org/635400
Diffstat (limited to '2.4/init')
-rwxr-xr-x | 2.4/init/apache2.initd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/2.4/init/apache2.initd b/2.4/init/apache2.initd index 2e3bd7a..b0be24a 100755 --- a/2.4/init/apache2.initd +++ b/2.4/init/apache2.initd @@ -151,7 +151,7 @@ modules() { } fullstatus() { - if ! type -p $(set -- ${LYNX}; echo $1) 2>&1 >/dev/null; then + if ! command -v $(set -- ${LYNX}; echo $1) 2>&1 >/dev/null; then eerror "lynx not found! you need to emerge www-client/lynx" else ${LYNX} ${STATUSURL} @@ -168,7 +168,7 @@ configdump() { checkconfd || return 1 - if ! type -p $(set -- ${LYNX}; echo $1) 2>&1 >/dev/null; then + if ! command -v $(set -- ${LYNX}; echo $1) 2>&1 >/dev/null; then eerror "lynx not found! you need to emerge www-client/lynx" else echo "${APACHE2} started with '${APACHE2_OPTS}'" |