aboutsummaryrefslogtreecommitdiffstats
path: root/community/nextcloud
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-06-25 02:19:49 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-06-25 02:42:48 +0200
commit09debd9f9820565692f47e22a38fa31e117d9e58 (patch)
tree96efa11ef42beffa8cabbfdff6e995d4fff5f7d5 /community/nextcloud
parent2a9da16c79f4bb48136b0e0a87958a1e22b697ef (diff)
downloadaports-09debd9f9820565692f47e22a38fa31e117d9e58.tar.bz2
aports-09debd9f9820565692f47e22a38fa31e117d9e58.tar.xz
community/nextcloud: add cron job
Diffstat (limited to 'community/nextcloud')
-rw-r--r--community/nextcloud/APKBUILD3
-rw-r--r--community/nextcloud/nextcloud.cron6
2 files changed, 9 insertions, 0 deletions
diff --git a/community/nextcloud/APKBUILD b/community/nextcloud/APKBUILD
index a6095fdefc..56ffa87c8f 100644
--- a/community/nextcloud/APKBUILD
+++ b/community/nextcloud/APKBUILD
@@ -21,6 +21,7 @@ source="https://download.nextcloud.com/server/releases/$pkgname-$pkgver.zip
$pkgname-config.php
$pkgname.logrotate
$pkgname.confd
+ $pkgname.cron
fpm-pool.conf"
options="!check"
pkgusers="nextcloud"
@@ -125,6 +126,7 @@ initscript() {
install -m 644 -D "$srcdir"/fpm-pool.conf "$confdir"/$pkgname.conf
install -m 644 -D "$srcdir"/$pkgname.confd "$subpkgdir"/etc/conf.d/$pkgname
+ install -m 755 -D "$srcdir"/$pkgname.cron ./etc/periodic/15min/$pkgname
mkdir -p "$subpkgdir"/etc/init.d
ln -s $fpm_name "$subpkgdir"/etc/init.d/$pkgname
@@ -197,4 +199,5 @@ ec3921d4d463ed82be0be073af8064048a20f638424d1d39ab46db4252036e87ef2614570be91a5c
89c941e2719629ee633421c4c75b55026c1a0a6b255e7f1f2c14612c10325045051b16dc5f17975af4a2a34ec187008de2eb15a53ac4cd06d26a5cbbd79fb73a nextcloud-config.php
f224d72799ee5819979089eb58978225454223bee597c938681a4f6279eb49297fe9250ac54ccf8bcb33ae262bce43d085affb77723492ee662263710d4008c9 nextcloud.logrotate
35cf156839215113b5d8fb8842b4c1e19a50be3c16be7048879fdd808674e4875dbacf3e2dd884fd182258595b7a137d7d3c2dc602a7ff5613c8b65fae0abe67 nextcloud.confd
+edb699ea6127b231793254115b334006c2d50a0d2ecc846188c3521ddffc3c0e19c5e2944f03cae81e6c645c859258380691081b1c522a22d40939b31db36e8a nextcloud.cron
ebe88e451de5dc84ee8bbcd9af48e2ceae4807546b9c069cf15ecc73e2c408a6e8c7502870f7b45a2e5e0632fc7dec878cad24c1d3a20ff3b812067dd7b07de8 fpm-pool.conf"
diff --git a/community/nextcloud/nextcloud.cron b/community/nextcloud/nextcloud.cron
new file mode 100644
index 0000000000..096ce65a5d
--- /dev/null
+++ b/community/nextcloud/nextcloud.cron
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Run only when nextcloud service is started.
+if rc-service nextcloud -q status >/dev/null 2>&1; then
+ su nextcloud -s /bin/sh -c 'php7 -f /usr/share/webapps/nextcloud/cron.php'
+fi