ne pas afficher d'erreur si apache n'est pas installé
This commit is contained in:
parent
5e1a6cf517
commit
48c04203bf
|
@ -51,7 +51,7 @@ function get_default_apachebin_prefix() {
|
||||||
|
|
||||||
function get_default_apacheversion_prefix() {
|
function get_default_apacheversion_prefix() {
|
||||||
[ -n "$APACHEBIN" ] || return
|
[ -n "$APACHEBIN" ] || return
|
||||||
local version="$($APACHEBIN -v | grep version:)"
|
local version="$($APACHEBIN -v 2>/dev/null | grep version:)"
|
||||||
if [[ "$version" == *1.3* ]]; then
|
if [[ "$version" == *1.3* ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
elif [[ "$version" == *2.0* ]]; then
|
elif [[ "$version" == *2.0* ]]; then
|
||||||
|
|
Loading…
Reference in New Issue