mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 08:48:05 +00:00
fixed recursive issue
This commit is contained in:
parent
b6418bf3e0
commit
7d0e46bc1f
1 changed files with 8 additions and 4 deletions
12
manage.py
12
manage.py
|
|
@ -181,9 +181,11 @@ def fixpermissions(user, group):
|
|||
try:
|
||||
for root, dirs, files in os.walk(hyperglass_root):
|
||||
for d in dirs:
|
||||
os.chown(d, uid, gid)
|
||||
full_path = os.path.join(root, d)
|
||||
os.chown(full_path, uid, gid)
|
||||
for f in files:
|
||||
os.chown(f, uid, gid)
|
||||
full_path = os.path.join(root, f)
|
||||
os.chown(full_path, uid, gid)
|
||||
os.chown(root, uid, gid)
|
||||
click.secho(
|
||||
"✓ Successfully changed hyperglass/ ownership", fg="green", bold=True
|
||||
|
|
@ -194,9 +196,11 @@ def fixpermissions(user, group):
|
|||
try:
|
||||
for root, dirs, files in os.walk(hyperglass_root):
|
||||
for d in dirs:
|
||||
os.chmod(d, 0o744)
|
||||
full_path = os.path.join(root, d)
|
||||
os.chmod(full_path, 0o744)
|
||||
for f in files:
|
||||
os.chmod(f, 0o744)
|
||||
full_path = os.path.join(root, f)
|
||||
os.chmod(full_path, 0o744)
|
||||
os.chmod(root, 0o744)
|
||||
click.secho(
|
||||
"✓ Successfully changed hyperglass/ permissions", fg="green", bold=True
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue