Skip to content

Commit 86b1526

Browse files
authored
Merge pull request #958 from lsst-it/IT-6305_htcondor_symlink_fix
(fleet/htcondor) fix initcontainer summit worker
2 parents 025e080 + 694157c commit 86b1526

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)