diff options
Diffstat (limited to 'roles/nextcloud/templates/run-cron.sh.j2')
-rw-r--r-- | roles/nextcloud/templates/run-cron.sh.j2 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/nextcloud/templates/run-cron.sh.j2 b/roles/nextcloud/templates/run-cron.sh.j2 index a0c986ae..9936bad1 100644 --- a/roles/nextcloud/templates/run-cron.sh.j2 +++ b/roles/nextcloud/templates/run-cron.sh.j2 @@ -1,7 +1,8 @@ #!/bin/bash -## TODO: what about other container runtimes??? -export CONTAINER_RUNTIME_ENDPOINT=unix:///run/containerd/containerd.sock +{% if kubernetes_cri_socket is defined %} +export CONTAINER_RUNTIME_ENDPOINT="{{ kubernetes_cri_socket }}" +{% endif %} POD_NAME="{{ item }}-$(hostname)" POD_ID=$(crictl pods --name "$POD_NAME" --state ready -q) |