[manage.py] getUid() oopsie
This commit is contained in:
parent
38f7de34d5
commit
c5c8961264
1 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ def getUid(service):
|
|||
if service in env['users'].keys():
|
||||
user = env['users'][service] + env['uid_shift']
|
||||
else:
|
||||
user = 0
|
||||
user = 1000
|
||||
return user
|
||||
|
||||
|
||||
|
@ -87,9 +87,9 @@ def setNftables():
|
|||
|
||||
def setOwner(path, uid=None, gid=None):
|
||||
stat = os.stat(path)
|
||||
if not uid:
|
||||
if uid is None:
|
||||
uid = stat.st_uid
|
||||
if not gid:
|
||||
if gid is None:
|
||||
gid = stat.st_gid
|
||||
|
||||
if stat.st_uid != uid or stat.st_gid != gid:
|
||||
|
|
Loading…
Reference in a new issue