From dd8b844c529aa997b5a496c4ea262bc219fdc452 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sat, 7 Oct 2017 23:09:08 +0200 Subject: [PATCH] Add SeedDMS fulltext indexing cronjob --- 10-seeddms.sh | 3 +++ seeddms/etc/cron.d/seeddms | 1 + 2 files changed, 4 insertions(+) create mode 100644 seeddms/etc/cron.d/seeddms diff --git a/10-seeddms.sh b/10-seeddms.sh index e797cb0..ec5a109 100755 --- a/10-seeddms.sh +++ b/10-seeddms.sh @@ -46,5 +46,8 @@ ln -s /etc/nginx/apps-available/seeddms /etc/nginx/apps-enabled/seeddms systemctl restart php7.0-fpm systemctl restart nginx +# Install cron job +cp ${SOURCE_DIR}/seeddms/etc/cron.d/seeddms /etc/cron.d/seeddms + # Add portal application definition ${SOURCE_DIR}/basic/portal-app-manager.py seeddms "/seeddms/" "${SEEDDMS_ADMIN_USER}" "${SEEDDMS_ADMIN_PWD}" diff --git a/seeddms/etc/cron.d/seeddms b/seeddms/etc/cron.d/seeddms new file mode 100644 index 0000000..d031983 --- /dev/null +++ b/seeddms/etc/cron.d/seeddms @@ -0,0 +1 @@ +*/5 * * * * seeddms cd /srv/seeddms/www/utils/ && /usr/bin/php indexer.php --config ../conf/settings.xml >/dev/null