Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
d671e3d5
Commit
d671e3d5
authored
Jun 06, 2013
by
Jean-Baptiste Petre
Committed by
Cédric de Saint Martin
Jun 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix variable names used by chownDirectory() in slapformat.
parent
966e0bb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
slapos/format.py
slapos/format.py
+2
-2
No files found.
slapos/format.py
View file @
d671e3d5
...
@@ -397,7 +397,7 @@ class Computer(object):
...
@@ -397,7 +397,7 @@ class Computer(object):
if
alter_user
:
if
alter_user
:
slapsoft
.
create
()
slapsoft
.
create
()
slapsoft_pw
=
pwd
.
getpwnam
(
slapsoft
.
name
)
slapsoft_pw
=
pwd
.
getpwnam
(
slapsoft
.
name
)
chownDirectory
(
path
,
uid
,
gid
)
chownDirectory
(
slapsoft
.
path
,
slapsoft_pw
.
pw_uid
,
slapsoft_pw
.
pw_
gid
)
os
.
chmod
(
self
.
software_root
,
0755
)
os
.
chmod
(
self
.
software_root
,
0755
)
# Speed hack:
# Speed hack:
...
@@ -519,7 +519,7 @@ class Partition(object):
...
@@ -519,7 +519,7 @@ class Partition(object):
os
.
mkdir
(
self
.
path
,
0750
)
os
.
mkdir
(
self
.
path
,
0750
)
if
alter_user
:
if
alter_user
:
owner_pw
=
pwd
.
getpwnam
(
owner
.
name
)
owner_pw
=
pwd
.
getpwnam
(
owner
.
name
)
chownDirectory
(
path
,
uid
,
gid
)
chownDirectory
(
self
.
path
,
owner_pw
.
pw_uid
,
owner_pw
.
pw_
gid
)
os
.
chmod
(
self
.
path
,
0750
)
os
.
chmod
(
self
.
path
,
0750
)
...
...
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