diff options
Diffstat (limited to 'apks/nextcloud-ext/nextcloud-ext.cron')
-rwxr-xr-x | apks/nextcloud-ext/nextcloud-ext.cron | 6 |
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 |