Change default mkdir permissions to 755 for deploy from source
This commit is contained in:
parent
1658d9eb16
commit
3b861a1116
@ -357,7 +357,7 @@ def git_pre_install():
|
||||
add_user_to_group('neutron', 'neutron')
|
||||
|
||||
for d in dirs:
|
||||
mkdir(d, owner='neutron', group='neutron', perms=0700, force=False)
|
||||
mkdir(d, owner='neutron', group='neutron', perms=0755, force=False)
|
||||
|
||||
for l in logs:
|
||||
write_file(l, '', owner='neutron', group='neutron', perms=0600)
|
||||
|
@ -228,11 +228,11 @@ class TestNeutronAPIUtils(CharmTestCase):
|
||||
add_user_to_group.assert_called_with('neutron', 'neutron')
|
||||
expected = [
|
||||
call('/var/lib/neutron', owner='neutron',
|
||||
group='neutron', perms=0700, force=False),
|
||||
group='neutron', perms=0755, force=False),
|
||||
call('/var/lib/neutron/lock', owner='neutron',
|
||||
group='neutron', perms=0700, force=False),
|
||||
group='neutron', perms=0755, force=False),
|
||||
call('/var/log/neutron', owner='neutron',
|
||||
group='neutron', perms=0700, force=False),
|
||||
group='neutron', perms=0755, force=False),
|
||||
]
|
||||
self.assertEquals(mkdir.call_args_list, expected)
|
||||
expected = [
|
||||
|
Loading…
Reference in New Issue
Block a user