CC-3299: Media monitor changes the owner of watched files?
- bug fixed
This commit is contained in:
parent
a79dd4fe04
commit
94aaf5b70e
@ -75,6 +75,9 @@ class MediaMonitorCommon:
|
||||
omask = os.umask(0)
|
||||
|
||||
if not has_correct_permissions(item, 'www-data', 'www-data'):
|
||||
uid = pwd.getpwnam('www-data')[2]
|
||||
gid = grp.getgrnam('www-data')[2]
|
||||
|
||||
os.chown(item, uid, gid)
|
||||
|
||||
if is_dir is True:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user