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