V-delete-remote-dns-host is missing one parent directory

Hey,

Hestia enjoyer 1.9.4 here.

v-delete-remote-dns-host has this curious check:

is_object_valid “../../conf/dns-cluster” ‘HOST’ “$host”

which evidently checks for the existence of dns-cluster.conf two parent directories above the current one (why not use $HESTIA/conf/dns-cluster.conf as everywhere else?).

and at this time it results in an error like this:

root@nexus:/usr/local/hestia/conf# v-delete-remote-dns-host ``example.com
grep: /usr/local/hestia/data/users/admin/../../conf/dns-cluster.conf: No such file or directory

as we can see, it’s trying to find the conf file in /usr/local/hestia/data

adding another parent directory

is_object_valid “../../../conf/dns-cluster” ‘HOST’ “$host”

to the expression fixes the issue but wouldn’t it be great to use the variable path? :slight_smile:

I couldn’t defeat this bug either. Ifreaked outfreaked out out and removed it just manually. :laughing::grinning_face:

It remains a mystery to me why all the fixes that have been made over a long time were not included in the panel update that has just been released. To be honest, I don’t understand absolutely the decisions of the developers.