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

POD_NAME="{{ elevate_media_nextcloud_instance_name }}-$(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