mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
dns issues on ubuntu
This commit is contained in:
parent
de68a6bc8f
commit
73be3c7543
2 changed files with 9 additions and 2 deletions
|
@ -372,9 +372,16 @@ rebuild_dns_domain_conf() {
|
|||
# Updating zone
|
||||
update_domain_zone
|
||||
|
||||
# Set permissions
|
||||
if [ "$DNS_SYSTEM" = 'named' ]; then
|
||||
dns_group='named'
|
||||
else
|
||||
dns_group='bind'
|
||||
fi
|
||||
|
||||
# Set file permissions
|
||||
chmod 640 $HOMEDIR/$user/conf/dns/$domain.db
|
||||
chown root:named $HOMEDIR/$user/conf/dns/$domain.db
|
||||
chown root:$dns_group $HOMEDIR/$user/conf/dns/$domain.db
|
||||
|
||||
# Get dns config path
|
||||
if [ -e '/etc/named.conf' ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue