Skip to content

Commit 694157c

Browse files
committed
(fleet/htcondor) fix initcontainer summit worker
1 parent 025e080 commit 694157c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

fleet/lib/htcondor/overlays/yagan/deployment-htcondor-worker.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ spec:
2020
initContainers:
2121
- name: init-symlinks
2222
image: busybox
23-
command: [sh, -c, ln -s /readonly/lsstdata/comcam/base/comcam /data/lsstdata/base/comcam && ln -s /readonly/lsstdata/auxtel/base/auxtel /data/lsstdata/base/auxtel]
23+
command:
24+
- sh
25+
- -c
26+
- >
27+
[ ! -e /data/lsstdata/base/comcam ] && ln -s /readonly/lsstdata/comcam/base/comcam /data/lsstdata/base/comcam;
28+
[ ! -e /data/lsstdata/base/auxtel ] && ln -s /readonly/lsstdata/auxtel/base/auxtel /data/lsstdata/base/auxtel
2429
volumeMounts:
2530
- name: lsstdata-comcam
2631
mountPath: /readonly/lsstdata/comcam

0 commit comments

Comments
 (0)