From 7c467be6d5afe4e63637e3cd9c18d3f709cc9cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Thu, 15 Nov 2007 20:30:17 +0000 Subject: [PATCH] don't add the openbasedir protection on webmail. Closes: #1080 --- src/functions.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/functions.sh b/src/functions.sh index 1b7dc48f..4d690b47 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -140,14 +140,14 @@ add_host() { else FQDN="$host.$domain" fi - if [ "$host_type" != "$TYPE_IP" ]; then - add_to_php_override "$FQDN" - fi if [ "$host_type" = "$TYPE_IP" ]; then ip="$value" else ip="$PUBLIC_IP" + if [ "$host_type" != "$TYPE_WEBMAIL" ]; then + add_to_php_override "$FQDN" + fi fi if [ "$host" = "@" -o -z "$host" ]; then change_host_ip "$domain" "$ip" || true