svg
This commit is contained in:
parent
6729035f15
commit
84da7e7ddd
|
@ -8,7 +8,7 @@ INSERT IGNORE INTO `niveau01` (`id`, `label`, `siren`) VALUES
|
||||||
(-100, 'DRAAF', '130007107');
|
(-100, 'DRAAF', '130007107');
|
||||||
|
|
||||||
INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES
|
INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES
|
||||||
(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}W19NNpFWpdE/5tLu1a2+Fw2KWVZfpZpy
|
(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}XeJxoO2l4dkHFX78WQ1Ik30sjLt3kffh
|
||||||
', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple');
|
', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple');
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,29 @@ class InitDataCommand extends ContainerAwareCommand
|
||||||
$entity->setJsonargument('{"simulate":"false"}');
|
$entity->setJsonargument('{"simulate":"false"}');
|
||||||
$this->entityManager->persist($entity);
|
$this->entityManager->persist($entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Job synchronisation onlyoffice
|
||||||
|
// Toute les 1h // Désactivé par défaut
|
||||||
|
$widonlyoffice_sync = $this->getContainer()->getParameter('widonlyoffice_sync');
|
||||||
|
$entity = $this->entityManager->getRepository('CadolesCronBundle:Cron')->find(105);
|
||||||
|
if(!$entity&&$widonlyoffice_sync) {
|
||||||
|
$entity = new Cron;
|
||||||
|
$nextdate=$entity->getSubmitdate();
|
||||||
|
$nextdate->setTime(3,0);
|
||||||
|
$entity->setCommand("Core:Only");
|
||||||
|
$entity->setDescription("Synchronisation des Only Office");
|
||||||
|
$entity->setId(105);
|
||||||
|
$entity->setRepeatcall(0);
|
||||||
|
$entity->setRepeatexec(0);
|
||||||
|
$entity->setRepeatinterval(3600);
|
||||||
|
$entity->setNextexecdate($entity->getSubmitdate());
|
||||||
|
$entity->setJsonargument('{"simulate":"false"}');
|
||||||
|
$this->entityManager->persist($entity);
|
||||||
|
}
|
||||||
|
elseif($entity&&!$widonlyoffice_sync) {
|
||||||
|
$this->entityManager->remove($entity);
|
||||||
|
}
|
||||||
|
|
||||||
// Job purge des registrations obsolètes
|
// Job purge des registrations obsolètes
|
||||||
// Toute les 5mn
|
// Toute les 5mn
|
||||||
$entity = $this->entityManager->getRepository('CadolesCronBundle:Cron')->find(110);
|
$entity = $this->entityManager->getRepository('CadolesCronBundle:Cron')->find(110);
|
||||||
|
|
|
@ -300,6 +300,7 @@ parameters:
|
||||||
%end if
|
%end if
|
||||||
%else
|
%else
|
||||||
activate_widonlyoffice: false
|
activate_widonlyoffice: false
|
||||||
|
widonlyoffice_sync: false
|
||||||
%end if
|
%end if
|
||||||
|
|
||||||
%if %%getVar("ninegate_activate_widopensondage", 'non') == "oui"
|
%if %%getVar("ninegate_activate_widopensondage", 'non') == "oui"
|
||||||
|
|
Loading…
Reference in New Issue