CC-3299: Media monitor changes the owner of watched files?
- bug fixed
This commit is contained in:
parent
a79dd4fe04
commit
94aaf5b70e
1 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,9 @@ class MediaMonitorCommon:
|
||||||
omask = os.umask(0)
|
omask = os.umask(0)
|
||||||
|
|
||||||
if not has_correct_permissions(item, 'www-data', 'www-data'):
|
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)
|
os.chown(item, uid, gid)
|
||||||
|
|
||||||
if is_dir is True:
|
if is_dir is True:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue