Skip to content

Commit 2e53421

Browse files
authored
fix file permissions and tmp dir (#86)
1 parent 04de815 commit 2e53421

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Charts/web-conexs/templates/api_deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ spec:
3333
volumeMounts:
3434
- mountPath: {{ .Values.data.mountPath}}
3535
name: data-pv-volume
36+
- mountPath: /tmp
37+
name: tmp
3638
env:
3739
- name: POSTGRESS_PASSWORD
3840
valueFrom:

web-conexs-api/src/slurm_submission_service/filetransfer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ def transfer_results(simulation_type_id, result_dir, storage_dir):
7272

7373
if not parent.exists:
7474
parent.mkdir()
75+
os.chmod(parent, 0o755)
7576

7677
shutil.copytree(result_dir, storage_dir, ignore=ignore_pattern, dirs_exist_ok=True)
78+
os.chmod(storage_dir, 0o755)
7779

7880

7981
def clean_up(directory):

0 commit comments

Comments
 (0)