CC-3299: Media monitor changes the owner of watched files?
- bug fixed
This commit is contained in:
parent
4043f011b5
commit
4b7272a173
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue