Commit 08aa29f2 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Fixed bug due to identation

parent d18fefac
...@@ -281,12 +281,17 @@ def run(config): ...@@ -281,12 +281,17 @@ def run(config):
os.chmod(slapos_software_file, 0644) os.chmod(slapos_software_file, 0644)
# Creating boot scripts # Creating boot scripts
for script in ['slapos.service','slapos']: path = os.path.join(mount_dir_path, 'etc', 'slapos', 'slapos')
path = os.path.join(mount_dir_path, 'etc', 'slapos', script)
print "Creating %r" % path print "Creating %r" % path
if not dry_run: if not dry_run:
open(path, 'w').write(pkg_resources.resource_stream(__name__, open(path, 'w').write(pkg_resources.resource_stream(__name__,
'script/%s' % script).read()) 'script/%s' % 'slapos').read())
os.chmod(path, 0755)
path = os.path.join(mount_dir_path, 'etc', 'systemd', 'system','slapos.service')
print "Creating %r" % path
if not dry_run:
open(path, 'w').write(pkg_resources.resource_stream(__name__,
'script/%s' % 'slapos.service').read())
os.chmod(path, 0755) os.chmod(path, 0755)
# Removing line in slapos script activating kvm in virtual # Removing line in slapos script activating kvm in virtual
...@@ -381,4 +386,3 @@ def main(): ...@@ -381,4 +386,3 @@ def main():
return_code = err return_code = err
sys.exit(return_code) sys.exit(return_code)
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