nextcloud: Ship instead of create cron timer related units

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2024-05-06 17:14:35 -04:00
1 parent 035d3b49bf
commit 6b046ec27d
3 files changed
+19 -40

No files matched your search

@@ -0,0 +1,8 @@
[Unit]
Description=Nextcloud cron.php job
Documentation=https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/background_jobs_configuration.html#systemd
[Service]
ExecCondition=/usr/bin/podman exec --user www-data nextcloud-freedombox /var/www/html/occ status -e
ExecStart=/usr/bin/podman exec --user www-data nextcloud-freedombox php -f /var/www/html/cron.php
KillMode=process
@@ -0,0 +1,11 @@
[Unit]
Description=Run Nextcloud cron.php every 5 minutes
Documentation=https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/background_jobs_configuration.html#systemd
[Timer]
OnBootSec=5min
OnUnitActiveSec=5min
Unit=nextcloud-cron-freedombox.service
[Install]
WantedBy=timers.target