markup: chgrp procat_web dirs so apache and celery can r/w
This commit is contained in:
@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user