From 52f2d5745df8ef85e5beba17152bf6de66d0e773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Sat, 4 Nov 2017 01:31:16 +0100 Subject: [PATCH] Initial commit --- LICENSE.md | 22 ++++++++++++++++++++++ PKGBUILD | 21 +++++++++++++++++++++ nextcloud-background-job.service | 9 +++++++++ nextcloud-background-job.timer | 10 ++++++++++ 4 files changed, 62 insertions(+) create mode 100644 LICENSE.md create mode 100644 PKGBUILD create mode 100644 nextcloud-background-job.service create mode 100644 nextcloud-background-job.timer diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..00b6f45 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,22 @@ +# The MIT License (MIT) + +Copyright © 2017 Patrick Lühne + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..8c2969c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Patrick Lühne + +pkgname=nextcloud-background-job +pkgver=1.0.0 +pkgrel=1 +pkgdesc='Regularly performs the Nextcloud cron.php background job' +arch=('i686' 'x86_64') +url='https://git.luehne.de/cp-lounge/nextcloud-background-job/' +license=('MIT') +depends=('nextcloud') +source=('nextcloud-background-job.'{service,timer} + 'LICENSE.md') +sha512sums=('2628b7c52f067c2bb6a820180d8d98d6b7380937071bd749b21a2385906c8f06b99257064f6e745c9ff800d45fb6a15473aa305288f68cdaf0b74810abf278c6' + '3aedfb198282d23a7017a9a33b06a63391a15e076cef36c5041c53da57a5ad2055a74e4f82c83de0af4dfed57971d954f4774f1d257e9f76cf8f8af395de6f49' + '328fcf40c7bf2a441af55c42682c7a5a49b43be1b1af852064849ec1d625b31c73e2f3c1fb95cfb823aee090713347f5dcda29679c2d050bd17380dfb5fdf047') + +package() { + install -d ${pkgdir}/usr/lib/systemd/system/ + install nextcloud-background-job.* ${pkgdir}/usr/lib/systemd/system/ + install -D -m644 LICENSE.md ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} diff --git a/nextcloud-background-job.service b/nextcloud-background-job.service new file mode 100644 index 0000000..e6f7fcd --- /dev/null +++ b/nextcloud-background-job.service @@ -0,0 +1,9 @@ +[Unit] +Description=Nextcloud cron.php background job + +[Service] +User=http +ExecStart=/usr/bin/php -f /usr/share/webapps/nextcloud/cron.php + +[Install] +WantedBy=basic.target diff --git a/nextcloud-background-job.timer b/nextcloud-background-job.timer new file mode 100644 index 0000000..8a6c23a --- /dev/null +++ b/nextcloud-background-job.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Run Nextcloud cron.php every 15 minutes + +[Timer] +OnBootSec=5min +OnUnitActiveSec=15min +Unit=nextcloud-background-job.service + +[Install] +WantedBy=timers.target