Commit 37da9000 authored by Łukasz Nowak's avatar Łukasz Nowak

Always set partition's permission.

In case if something went wrong in previous run, one can have problem with
partition and its permission can be wrong.
parent f8cb38a1
...@@ -33,7 +33,7 @@ class SlapOSControler(object): ...@@ -33,7 +33,7 @@ class SlapOSControler(object):
partition_path = os.path.join(config['instance_root'], partition_reference) partition_path = os.path.join(config['instance_root'], partition_reference)
if not os.path.exists(partition_path): if not os.path.exists(partition_path):
os.mkdir(partition_path) os.mkdir(partition_path)
os.chmod(partition_path, 0750) os.chmod(partition_path, 0750)
computer.updateConfiguration(xml_marshaller.dumps({ computer.updateConfiguration(xml_marshaller.dumps({
'address': config['ipv4_address'], 'address': config['ipv4_address'],
'instance_root': config['instance_root'], 'instance_root': config['instance_root'],
......
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