summaryrefslogtreecommitdiff
path: root/roles/apps/nextcloud/templates/nextcloud-cron.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-09-13 00:12:53 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-09-13 00:12:53 +0200
commit5633a947ea1bd1ca293ec24caa7cfd056b28fe3f (patch)
tree475d127ef1a5634bf23071f9e27418cfee5dc4f8 /roles/apps/nextcloud/templates/nextcloud-cron.j2
parentgreenbone: update to latest compose file (diff)
apps/nextcloud: move common tassk to base role
Diffstat (limited to 'roles/apps/nextcloud/templates/nextcloud-cron.j2')
-rwxr-xr-xroles/apps/nextcloud/templates/nextcloud-cron.j219
1 files changed, 0 insertions, 19 deletions
diff --git a/roles/apps/nextcloud/templates/nextcloud-cron.j2 b/roles/apps/nextcloud/templates/nextcloud-cron.j2
deleted file mode 100755
index 355ae2c3..00000000
--- a/roles/apps/nextcloud/templates/nextcloud-cron.j2
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-INST_NAME="$1"
-shift
-
-if [ -z "$INST_NAME" ]; then
- echo "Usage: $0 <instance>"
- exit 1
-fi
-
-set -eu
-
-pod_id=$(crictl pods -q --state ready --name "^nextcloud-$INST_NAME-{{ ansible_nodename }}$")
-if [ -z "$pod_id" ]; then echo "Pod not found"; exit 1; fi
-
-container_id=$(crictl ps -q --name '^nextcloud$' -p "$pod_id")
-if [ -z "$container_id" ]; then echo "Container not found"; exit 1; fi
-
-exec crictl exec "$container_id" php -f /var/www/html/cron.php