diff options
-rw-r--r-- | apks/nextcloud-ext/APKBUILD | 37 | ||||
-rwxr-xr-x | apks/nextcloud-ext/nextcloud-ext.cron | 6 |
2 files changed, 43 insertions, 0 deletions
diff --git a/apks/nextcloud-ext/APKBUILD b/apks/nextcloud-ext/APKBUILD new file mode 100644 index 0000000..2c99821 --- /dev/null +++ b/apks/nextcloud-ext/APKBUILD @@ -0,0 +1,37 @@ +# Maintainer: Gabriel A. Giovanini <mail@gabriegio.me> +pkgname=nextcloud-ext +pkgver=0.0.1 +pkgrel=1 +pkgdesc="Meta package for maintaining nextcloud" +url="https://git.sr.ht/~gabrielgio/apkbuilds" +arch="noarch" +license="MIT" +options="!check" # this can't be tested +depends=" + nextcloud + nextcloud-files_external + nextcloud-files_pdfviewer + nextcloud-files_rightclick + nextcloud-files_sharing + nextcloud-files_trashbin + nextcloud-files_versions + nextcloud-files_videoplayer + nextcloud-initscript + nextcloud-pgsql + nextcloud-photos + nextcloud-sharebymail + nextcloud-text + nextcloud-user_status + nextcloud-weather_status + ffmpeg +" +source="$pkgname.cron" +builddir="$srcdir"/$pkgname + +package() { + mkdir -p "$pkgdir" + install -m 755 -D "$srcdir"/$pkgname.cron "$pkgdir"/etc/periodic/15min/$pkgname +} +sha512sums=" +66b1609a3b4d8e398a37f7bda117b0b0a661d32c9484202758c0c21b18560f46bded9b17a3b4ec4931a26dd2b02a20fe5be1f06c3420da69ea952a6aa712ff5c nextcloud-ext.cron +" diff --git a/apks/nextcloud-ext/nextcloud-ext.cron b/apks/nextcloud-ext/nextcloud-ext.cron new file mode 100755 index 0000000..a989082 --- /dev/null +++ b/apks/nextcloud-ext/nextcloud-ext.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 'occ preview:pre-generate' +fi |