Add cron in glpi

This commit is contained in:
Thomas Legay 2023-06-16 14:37:58 +02:00
parent f33c5da59c
commit 7531b2fcac
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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