summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Schrempf2018-11-26 18:05:53 +0100
committerDominik Schrempf2018-11-26 18:05:53 +0100
commit2246da19cf4397a856e83b97e17ac6641b0fe1ee (patch)
treea6bb09cedf1a9f57fdaeef46d71e0ab85f301b94
parent75280fea4558ca51c43039170f6d60d9ae225587 (diff)
downloadaur-2246da19cf4397a856e83b97e17ac6641b0fe1ee.tar.gz
add preview generation timer
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD14
-rw-r--r--nextcloud-preview.service9
-rw-r--r--nextcloud-preview.timer10
-rw-r--r--nextcloudcron.service2
-rw-r--r--nextcloudcron.timer2
6 files changed, 38 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8513ede5f49..f3390f66adf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,18 @@
pkgbase = nextcloud-systemd-cron
pkgdesc = Systemd service and timer for Nextcloud Cron background jobs (see Nextcloud Arch Wiki entry).
- pkgver = 0.2
+ pkgver = 0.3
pkgrel = 1
install = nextcloud-systemd-cron.install
arch = any
license = GPL
source = nextcloudcron.service
source = nextcloudcron.timer
- md5sums = 95d8686b2480f1ab73ba5ccd7f672fae
- md5sums = 762473fd2fa1ed27d878d39b94de736c
+ source = nextcloud-preview.service
+ source = nextcloud-preview.timer
+ md5sums = 78dbe72845222ad01aafb60f32f828e8
+ md5sums = c8fabd54720ad97c472a842a1d91f5b1
+ md5sums = a019ced938dc5a6c1cc59e05c5a88be3
+ md5sums = 435d1a3537471163e3cc1c304e4fae76
pkgname = nextcloud-systemd-cron
diff --git a/PKGBUILD b/PKGBUILD
index 7b304d0debc..30048f03fec 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Dominik Schrempf <dominik.schrempf@gmail.com>
pkgname=nextcloud-systemd-cron
-pkgver=0.2
+pkgver=0.3
pkgrel=1
epoch=
pkgdesc="Systemd service and timer for Nextcloud Cron background jobs (see Nextcloud Arch Wiki entry)."
@@ -20,9 +20,13 @@ options=()
install=nextcloud-systemd-cron.install
changelog=
source=("nextcloudcron.service"
- "nextcloudcron.timer")
-md5sums=('95d8686b2480f1ab73ba5ccd7f672fae'
- '762473fd2fa1ed27d878d39b94de736c')
+ "nextcloudcron.timer"
+ "nextcloud-preview.service"
+ "nextcloud-preview.timer")
+md5sums=('78dbe72845222ad01aafb60f32f828e8'
+ 'c8fabd54720ad97c472a842a1d91f5b1'
+ 'a019ced938dc5a6c1cc59e05c5a88be3'
+ '435d1a3537471163e3cc1c304e4fae76')
noextract=()
# prepare() {
@@ -46,6 +50,8 @@ package() {
# make DESTDIR="$pkgdir/" install
install -D -m 644 nextcloudcron.service $pkgdir/etc/systemd/system/nextcloudcron.service
install -D -m 644 nextcloudcron.timer $pkgdir/etc/systemd/system/nextcloudcron.timer
+ install -D -m 644 nextcloud-preview.service $pkgdir/etc/systemd/system/nextcloud-preview.service
+ install -D -m 644 nextcloud-preview.timer $pkgdir/etc/systemd/system/nextcloud-preview.timer
}
# vim:set ts=2 sw=2 et:
diff --git a/nextcloud-preview.service b/nextcloud-preview.service
new file mode 100644
index 00000000000..448f730d155
--- /dev/null
+++ b/nextcloud-preview.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Nextcloud preview generation
+
+[Service]
+User=http
+ExecStart=/usr/share/webapps/nextcloud/occ preview:pre-generate
+
+[Install]
+WantedBy=basic.target
diff --git a/nextcloud-preview.timer b/nextcloud-preview.timer
new file mode 100644
index 00000000000..89a971e43ab
--- /dev/null
+++ b/nextcloud-preview.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Nextcloud preview generation
+
+[Timer]
+OnBootSec=5min
+OnCalendar=weekly
+Persistent=True
+
+[Install]
+WantedBy=timers.target \ No newline at end of file
diff --git a/nextcloudcron.service b/nextcloudcron.service
index 8325ec67550..63cf94de310 100644
--- a/nextcloudcron.service
+++ b/nextcloudcron.service
@@ -1,5 +1,5 @@
[Unit]
-Description=Nextcloud cron.php job
+Description=Nextcloud cron.php
[Service]
User=http
diff --git a/nextcloudcron.timer b/nextcloudcron.timer
index da50bbb6393..a53a4af21ce 100644
--- a/nextcloudcron.timer
+++ b/nextcloudcron.timer
@@ -1,5 +1,5 @@
[Unit]
-Description=Run Nextcloud cron.php every 15 minutes
+Description=Nextcloud cron.php
[Timer]
OnBootSec=5min