summaryrefslogtreecommitdiff
path: root/roles/apps/nextcloud/templates/run-cron.sh.j2
blob: 455bc3ec5c125e7472513e6faa84393e492efe17 (plain) (blame)
1
2
3
4
5
6
7
#!/bin/bash

POD_NAME="{{ item }}-$(hostname)"
POD_ID=$(crictl pods --name "$POD_NAME" --state ready -q)
CONTAINER_ID=$(crictl ps --pod "$POD_ID" --name nextcloud -q)

exec crictl exec "$CONTAINER_ID" php -f /var/www/html/cron.php