Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
6d132cbd
Commit
6d132cbd
authored
Mar 17, 2011
by
Thomas Bosviel
Committed by
anarcat
Mar 30, 2011
Browse files
Issue
#1050730
: Bind needs write access on slave zones directory
parent
a3c3f982
Changes
1
Hide whitespace changes
Inline
Side-by-side
dns/bind_slave/bind_slave_service.inc
View file @
6d132cbd
...
...
@@ -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
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment