summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Schrempf2020-05-26 09:47:57 +0200
committerDominik Schrempf2020-05-26 09:47:57 +0200
commit8fefd6cde60020386f2122675702fdf3ef9c0a99 (patch)
tree96288cab02e15e8db43fae19527545a94d23bc8f
parent525d00618e820f8c35b902917c40ee75373ef94b (diff)
downloadaur-8fefd6cde60020386f2122675702fdf3ef9c0a99.tar.gz
add app update; bump version to 0.6.3
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD28
-rw-r--r--nextcloud-app-update-all.service9
-rw-r--r--nextcloud-app-update-all.timer10
-rw-r--r--nextcloud-systemd-timers.install16
5 files changed, 59 insertions, 26 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4ec069c9e6b..08fe1c44537 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,26 +1,30 @@
pkgbase = nextcloud-systemd-timers
pkgdesc = Systemd services and timers for Nextcloud background jobs (see Nextcloud Arch Wiki entry).
- pkgver = 0.6.2
+ pkgver = 0.6.3
pkgrel = 1
install = nextcloud-systemd-timers.install
arch = any
license = GPL
+ source = nextcloud-app-update-all.service
+ source = nextcloud-app-update-all.timer
source = nextcloud-cron.service
source = nextcloud-cron.timer
- source = nextcloud-preview-pre-generate.service
- source = nextcloud-preview-pre-generate.timer
- source = nextcloud-preview-generate-all.service
- source = nextcloud-preview-generate-all.timer
source = nextcloud-files-scan-all.service
source = nextcloud-files-scan-all.timer
+ source = nextcloud-preview-generate-all.service
+ source = nextcloud-preview-generate-all.timer
+ source = nextcloud-preview-pre-generate.service
+ source = nextcloud-preview-pre-generate.timer
+ sha256sums = ee6f44559dc7d378aa4e15800cc32fd4c21834c8eb3c22337e9cc93d99d7d96a
+ sha256sums = 39039f1a3dc23022fccc991daca86d77e7d41be275566f6892cd6b290fa0da4a
sha256sums = 7fe27aa2ef2a034cf19a02571cefd1f6b40dd64fa48abda3ed0c82e2181f12c1
sha256sums = a7db3a28abfee48393bd70dc71e9abf813130169229f2a35b072cc11dbd09863
- sha256sums = bfaa2602d78f097c95e76d150423f83779384a737d41502bd8067b8f663b436f
- sha256sums = 56e3cab181040101be05d4b7723825f7b0c082c34403e42c6f0934c6474a6a43
- sha256sums = 18913873bf889f8b4d8bc2109d313fed02e523c86519ca96285640bf965732d5
- sha256sums = bd4bbd01a9d68e0217c3b48c977dda881fd956b53f981a6e32af0357d2e0b716
sha256sums = d81ebf8ad4a25293c0b7a80a4aa784848cfdc894eb9b799dd535bbb085713afd
sha256sums = 2f191059b619141ba883ae132af56460212c84eb208f087b87b79b0a3b9e4900
+ sha256sums = 18913873bf889f8b4d8bc2109d313fed02e523c86519ca96285640bf965732d5
+ sha256sums = bd4bbd01a9d68e0217c3b48c977dda881fd956b53f981a6e32af0357d2e0b716
+ sha256sums = bfaa2602d78f097c95e76d150423f83779384a737d41502bd8067b8f663b436f
+ sha256sums = 56e3cab181040101be05d4b7723825f7b0c082c34403e42c6f0934c6474a6a43
pkgname = nextcloud-systemd-timers
diff --git a/PKGBUILD b/PKGBUILD
index 5003129cbf4..5cde7225431 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Dominik Schrempf <dominik.schrempf@gmail.com>
pkgname=nextcloud-systemd-timers
-pkgver=0.6.2
+pkgver=0.6.3
pkgrel=1
epoch=
pkgdesc="Systemd services and timers for Nextcloud background jobs (see Nextcloud Arch Wiki entry)."
@@ -19,22 +19,26 @@ backup=()
options=()
install=nextcloud-systemd-timers.install
changelog=
-source=("nextcloud-cron.service"
+source=("nextcloud-app-update-all.service"
+ "nextcloud-app-update-all.timer"
+ "nextcloud-cron.service"
"nextcloud-cron.timer"
- "nextcloud-preview-pre-generate.service"
- "nextcloud-preview-pre-generate.timer"
+ "nextcloud-files-scan-all.service"
+ "nextcloud-files-scan-all.timer"
"nextcloud-preview-generate-all.service"
"nextcloud-preview-generate-all.timer"
- "nextcloud-files-scan-all.service"
- "nextcloud-files-scan-all.timer")
-sha256sums=('7fe27aa2ef2a034cf19a02571cefd1f6b40dd64fa48abda3ed0c82e2181f12c1'
+ "nextcloud-preview-pre-generate.service"
+ "nextcloud-preview-pre-generate.timer")
+sha256sums=('ee6f44559dc7d378aa4e15800cc32fd4c21834c8eb3c22337e9cc93d99d7d96a'
+ '39039f1a3dc23022fccc991daca86d77e7d41be275566f6892cd6b290fa0da4a'
+ '7fe27aa2ef2a034cf19a02571cefd1f6b40dd64fa48abda3ed0c82e2181f12c1'
'a7db3a28abfee48393bd70dc71e9abf813130169229f2a35b072cc11dbd09863'
- 'bfaa2602d78f097c95e76d150423f83779384a737d41502bd8067b8f663b436f'
- '56e3cab181040101be05d4b7723825f7b0c082c34403e42c6f0934c6474a6a43'
+ 'd81ebf8ad4a25293c0b7a80a4aa784848cfdc894eb9b799dd535bbb085713afd'
+ '2f191059b619141ba883ae132af56460212c84eb208f087b87b79b0a3b9e4900'
'18913873bf889f8b4d8bc2109d313fed02e523c86519ca96285640bf965732d5'
'bd4bbd01a9d68e0217c3b48c977dda881fd956b53f981a6e32af0357d2e0b716'
- 'd81ebf8ad4a25293c0b7a80a4aa784848cfdc894eb9b799dd535bbb085713afd'
- '2f191059b619141ba883ae132af56460212c84eb208f087b87b79b0a3b9e4900')
+ 'bfaa2602d78f097c95e76d150423f83779384a737d41502bd8067b8f663b436f'
+ '56e3cab181040101be05d4b7723825f7b0c082c34403e42c6f0934c6474a6a43')
noextract=()
# prepare() {
@@ -57,6 +61,8 @@ package() {
# cd "$srcdir/$pkgname-$pkgver"
# make DESTDIR="$pkgdir/" install
install -D -t $pkgdir/usr/lib/systemd/system -m 644 \
+ nextcloud-app-update-all.service \
+ nextcloud-app-update-all.timer \
nextcloud-cron.service \
nextcloud-cron.timer \
nextcloud-files-scan-all.service \
diff --git a/nextcloud-app-update-all.service b/nextcloud-app-update-all.service
new file mode 100644
index 00000000000..48ec146c9e5
--- /dev/null
+++ b/nextcloud-app-update-all.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Nextcloud; update all applications
+
+[Service]
+User=http
+ExecStart=/usr/share/webapps/nextcloud/occ app:update --all
+
+[Install]
+WantedBy=basic.target
diff --git a/nextcloud-app-update-all.timer b/nextcloud-app-update-all.timer
new file mode 100644
index 00000000000..4b56f4c480d
--- /dev/null
+++ b/nextcloud-app-update-all.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Nextcloud; update all applications daily
+
+[Timer]
+OnBootSec=15min
+OnCalendar=daily
+Persistent=True
+
+[Install]
+WantedBy=timers.target \ No newline at end of file
diff --git a/nextcloud-systemd-timers.install b/nextcloud-systemd-timers.install
index 43469e0cfe6..144cebdd4b1 100644
--- a/nextcloud-systemd-timers.install
+++ b/nextcloud-systemd-timers.install
@@ -1,7 +1,3 @@
-# This is a default template for a post-install scriptlet.
-# Uncomment only required functions and remove any functions
-# you don't need (and this header).
-
## arg 1: the new package version
#pre_install() {
# do something here
@@ -9,7 +5,6 @@
## arg 1: the new package version
post_install() {
- # do something here
echo "In order to complete installation, manual steps are necessary."
echo "The timers can be activated individually and according to your needs."
echo "--"
@@ -21,6 +16,8 @@ post_install() {
echo '$ systemctl enable TIMER'
echo "--"
echo "Available timers."
+ echo "- nextcloud-app-update-all.timer"
+ echo " Periodic (daily and after boot) update of all applications."
echo "- nextcloud-cron.timer"
echo " Periodic (every 15 min) execution of cron.php."
echo "- nextcloud-files-scan-all.timer"
@@ -28,7 +25,7 @@ post_install() {
echo "- nextcloud-preview-generate-all.timer"
echo " Activate periodic (weekly and after boot) preview generation of ALL files."
echo "- nextcloud-preview-pre-generate.timer"
- echo " Activate periodic (after boot and every 15 min)preview generation of NEW files."
+ echo " Activate periodic (every 15 min and after boot) preview generation of NEW files."
echo "--"
echo "Check status and activation of timers."
echo '$ systemctl list-timers'
@@ -44,6 +41,13 @@ pre_upgrade() {
echo "/etc/systemd/system to /usr/lib/systemd/system."
echo "Please ensure that your timers work after the upgrade."
echo
+ elif [[ "$1" == "0.6.3-1" ]]
+ then
+ echo
+ echo "A new timer was added:"
+ echo "- nextcloud-app-update-all.timer"
+ echo " Periodic (daily) update all applications."
+ echo
fi
}