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