Commit 82a09cc9 authored by Thomas Bosviel's avatar Thomas Bosviel Committed by anarcat

Issue #1050730: Bind needs write access on slave zones directory

parent a44c72f7
......@@ -24,6 +24,18 @@ class provisionService_dns_bind_slave extends provisionService_dns {
$this->restart();
}
function verify_server_cmd() {
if (!is_null($this->application_name)) {
provision_file()->create_dir($this->server->dns_zoned_path, dt("DNS slave zone configuration"), 0775);
$this->sync($this->server->dns_zoned_path, array(
'exclude' => $this->server->dns_zoned_path . '/*', // Make sure remote directory is created
));
$this->create_config('server');
}
}
/**
* Create the zonefile record on the slave server
*
......
......@@ -171,7 +171,7 @@ class provisionService_dns extends provisionService {
provision_file()->create_dir($this->server->dns_data_path, dt("DNS data store"), 0700);
if (!is_null($this->application_name)) {
provision_file()->create_dir($this->server->dns_zoned_path, dt("DNS zone configuration"), 0775);
provision_file()->create_dir($this->server->dns_zoned_path, dt("DNS zone configuration"), 0755);
$this->sync($this->server->dns_zoned_path, array(
'exclude' => $this->server->dns_zoned_path . '/*', // Make sure remote directory is created
));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment