[manage.py] getUid() oopsie

This commit is contained in:
Viyurz 2024-10-01 13:57:43 +02:00
parent 38f7de34d5
commit c5c8961264
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -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: