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
82a09cc9
Commit
82a09cc9
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
a44c72f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
dns/bind_slave/bind_slave_service.inc
View file @
82a09cc9
...
...
@@ -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
*
...
...
dns/dns.drush.inc
View file @
82a09cc9
...
...
@@ -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"
),
07
7
5
);
provision_file
()
->
create_dir
(
$this
->
server
->
dns_zoned_path
,
dt
(
"DNS zone configuration"
),
07
5
5
);
$this
->
sync
(
$this
->
server
->
dns_zoned_path
,
array
(
'exclude'
=>
$this
->
server
->
dns_zoned_path
.
'/*'
,
// Make sure remote directory is created
));
...
...
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