File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change 1616celery_data_dir = os .path .join (PROJECT_DIR , 'data' , 'celery_task' )
1717if not os .path .exists (celery_data_dir ) or not os .path .isdir (celery_data_dir ):
1818 os .makedirs (celery_data_dir , 0o700 , exist_ok = True )
19+ os .chmod (os .path .dirname (celery_data_dir ), 0o700 )
1920# Celery using redis as broker
2021redis_celery_once_db = CONFIG .get ("REDIS_DB" )
2122redis_celery_db = CONFIG .get ('REDIS_DB' )
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ def get_file_name():
6363 pylint_dir = os .path .join (PROJECT_DIR , 'data' , 'pylint' )
6464 if not os .path .exists (pylint_dir ):
6565 os .makedirs (pylint_dir , 0o700 , exist_ok = True )
66+ os .chmod (os .path .dirname (pylint_dir ), 0o700 )
6667 return os .path .join (pylint_dir , file_name )
6768
6869
You can’t perform that action at this time.
0 commit comments