mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 14:24:07 -07:00
Update main.php
Проверка использования DNS на сервере для скрытия или отображения галочки при создании веб-домена "Поддержка DNS". По умолчанию она активна даже без установленного DNS-сервера.
This commit is contained in:
parent
8ecf60d052
commit
fd70652faa
1 changed files with 8 additions and 0 deletions
|
@ -384,3 +384,11 @@ function is_it_mysql_or_mariadb() {
|
|||
if (isset($data['mariadb'])) $mysqltype='mariadb';
|
||||
return $mysqltype;
|
||||
}
|
||||
|
||||
function check_dns_installed() {
|
||||
exec (VESTA_CMD."v-list-sys-dns-status", $output, $return_var);
|
||||
unset($output);
|
||||
$dns_enabled='on';
|
||||
if (isset($date['dns'])) $dns_enabled='off' ;
|
||||
return $dns_enabled;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue