Add cron in glpi
This commit is contained in:
parent
f33c5da59c
commit
7531b2fcac
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
3
ressources/glpi/rootfs/glpi.cron
Normal file
3
ressources/glpi/rootfs/glpi.cron
Normal 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
|
Loading…
Reference in a new issue