Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Justin
slapos.toolbox
Commits
08aa29f2
Commit
08aa29f2
authored
Feb 10, 2012
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug due to identation
parent
d18fefac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
slapos/builder/__init__.py
slapos/builder/__init__.py
+13
-9
No files found.
slapos/builder/__init__.py
View file @
08aa29f2
...
@@ -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
)
Write
Preview
Markdown
is supported
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