markup: chgrp procat_web dirs so apache and celery can r/w

This commit is contained in:
2020-03-13 09:16:28 -07:00
parent 6e8c1b2b22
commit 1988d9c64a

View File

@ -79,12 +79,12 @@ def ensure_dir(dir):
if not os.path.exists(dir): if not os.path.exists(dir):
os.makedirs(dir) os.makedirs(dir)
os.chmod(dir, 0o775) os.chmod(dir, 0o775)
shutil.chown(dir, group='procat') shutil.chown(dir, group='procat_web')
def set_file_perms(file): def set_file_perms(file):
os.chmod(file, 0o664) os.chmod(file, 0o664)
shutil.chown(file, group='procat') shutil.chown(file, group='procat_web')
def clean_path(path): def clean_path(path):