aboutsummaryrefslogtreecommitdiff
path: root/apks/nextcloud-ext/nextcloud-ext.cron
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2024-01-01 16:44:50 +0100
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2024-01-01 16:52:39 +0100
commit5375d409755db9d64f350656f9987164db04f047 (patch)
tree6ca03c571be676bc1b0babd6f35b931146504d8c /apks/nextcloud-ext/nextcloud-ext.cron
parentbb43ffe016b1d6df34f5b77bb04c27a89b537ef4 (diff)
downloadapkbuilds-5375d409755db9d64f350656f9987164db04f047.tar.gz
apkbuilds-5375d409755db9d64f350656f9987164db04f047.tar.bz2
apkbuilds-5375d409755db9d64f350656f9987164db04f047.zip
feat: Add meta package for nextcloud
It will help me to keep some configuration versioned.
Diffstat (limited to 'apks/nextcloud-ext/nextcloud-ext.cron')
-rwxr-xr-xapks/nextcloud-ext/nextcloud-ext.cron6
1 files changed, 6 insertions, 0 deletions
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