Change default mkdir permissions to 755 for deploy from source
This commit is contained in:
parent
76cd3d7e20
commit
37de2dc33c
@ -239,7 +239,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)
|
||||
|
@ -247,11 +247,11 @@ class TestNeutronOVSUtils(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…
x
Reference in New Issue
Block a user