From 7531b2fcaccaaa5b4687225fd9672a0fd2c1bf4c Mon Sep 17 00:00:00 2001 From: Thomas Legay Date: Fri, 16 Jun 2023 14:37:58 +0200 Subject: [PATCH] Add cron in glpi --- ressources/glpi/debmaker | 1 + ressources/glpi/rootfs/glpi.cron | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 ressources/glpi/rootfs/glpi.cron diff --git a/ressources/glpi/debmaker b/ressources/glpi/debmaker index 1817bc5..7d12c9f 100755 --- a/ressources/glpi/debmaker +++ b/ressources/glpi/debmaker @@ -47,6 +47,7 @@ makedeb(){ mv ${PATH_DEB}/downstream.php ${PATH_DEB}/usr/share/glpi/inc/ mv ${PATH_DEB}/local_define.php ${PATH_DEB}/etc/glpi mv ${PATH_DEB}/apache2-glpi.conf ${PATH_DEB}/usr/share/doc/glpi/ + mv ${PATH_DEB}glpi.cron ${PATH_DEB}/etc/cron.d/glpi sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist diff --git a/ressources/glpi/rootfs/glpi.cron b/ressources/glpi/rootfs/glpi.cron new file mode 100644 index 0000000..e8e9afc --- /dev/null +++ b/ressources/glpi/rootfs/glpi.cron @@ -0,0 +1,3 @@ +*/5 * * * * www-data /usr/share/glpi//bin/console -n -q Ldap:synchronize_users -c +18 * * * * www-data /usr/share/glpi//bin/console -n -q Ldap:synchronize_users -d 3 +* * * * * www-data /usr/bin/php /usr/share/glpi/front/cron.php