diff options
author | Christian Pointner <equinox@spreadspace.org> | 2024-09-13 00:12:53 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2024-09-13 00:12:53 +0200 |
commit | 5633a947ea1bd1ca293ec24caa7cfd056b28fe3f (patch) | |
tree | 475d127ef1a5634bf23071f9e27418cfee5dc4f8 /roles/apps/nextcloud/base/templates/cron@.service.j2 | |
parent | greenbone: update to latest compose file (diff) |
apps/nextcloud: move common tassk to base role
Diffstat (limited to 'roles/apps/nextcloud/base/templates/cron@.service.j2')
-rw-r--r-- | roles/apps/nextcloud/base/templates/cron@.service.j2 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/apps/nextcloud/base/templates/cron@.service.j2 b/roles/apps/nextcloud/base/templates/cron@.service.j2 new file mode 100644 index 00000000..d8cde0a3 --- /dev/null +++ b/roles/apps/nextcloud/base/templates/cron@.service.j2 @@ -0,0 +1,15 @@ +[Unit] +Description=Nextcloud cron.php job for %i + +[Service] +Type=oneshot +ExecStart=/usr/local/bin/nextcloud-cron %i +NoNewPrivileges=yes +PrivateTmp=yes +PrivateDevices=yes +ProtectSystem=strict +ProtectHome=yes +ProtectKernelTunables=yes +ProtectControlGroups=yes +RestrictRealtime=yes +RestrictAddressFamilies=AF_UNIX AF_INET |