No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

createlinks 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #!/usr/bin/perl -w
  2. use esmith::Build::CreateLinks qw(:all);
  3. foreach my $event (qw/user-create user-modify group-create group-modify group-delete ldap-update bootstrap-ldap-save/){
  4. event_link("update-reverse-group", "$event", "85");
  5. }
  6. foreach my $event (qw/user-modify user-modify-admin pseudonym-create pseudonym-modify pseudonym-delete ldap-update bootstrap-ldap-save/){
  7. event_link("update-ldap-pseudonyms", "$event", "86");
  8. }
  9. # Initialisation des comptes, partages et domaines
  10. foreach my $event (qw/ipasserelle-update bootstrap-ldap-save/){
  11. event_link("ipasserelle-init-accounts", "$event", "10");
  12. event_link("ipasserelle-init-shares", "$event", "15");
  13. event_link("ipasserelle-init-domains", "$event", "20");
  14. }
  15. # Generateur de signature
  16. foreach my $event (qw/ipasserelle-update bootstrap-console-save user-create user-modify user-modify-admin ldap-update/){
  17. event_link("generate-email-sign", "$event", "50");
  18. }
  19. # Initialisation des domaines
  20. foreach my $event (qw/ipasserelle-update bootstrap-ldap-save/){
  21. event_link("private-cacert", "$event", "25");
  22. }
  23. # Activation de qmail-notify
  24. safe_symlink("/etc/e-smith/templates-default/template-begin-shell", "root/etc/e-smith/templates/etc/cron.hourly/qmail-notify/template-begin");
  25. templates2events("/etc/cron.hourly/qmail-notify", qw(email-update bootstrap-console-save));
  26. # Desactivation des checks RAID
  27. templates2events("/etc/sysconfig/raid-check", qw(ipasserelle-update bootstrap-console-save));
  28. # Config des panels
  29. event_link("conf-userpanelsymlinks", "ipasserelle-update", "60");
  30. # Reset unsavedchange
  31. event_link("reset-unsavedflag", "ipasserelle-update", "80");
  32. safe_symlink("sighup", "root/etc/e-smith/events/ipasserelle-update/services2adjust/smbd");
  33. # Permissions scan
  34. event_link("share-modify-scan", "user-create", "80");
  35. event_link("share-modify-scan", "user-delete", "80");
  36. event_link("share-modify-scan", "ipasserelle-update", "80");
  37. # Update LDAP attr on user-modify
  38. event_link("ldap-update-info", "user-modify", "89");
  39. event_link("ldap-update-info", "user-modify-admin", "89");
  40. event_link("ldap-update-info", "ldap-update", "89");
  41. event_link("ldap-update-info", "bootstrap-ldap-save", "89");
  42. # Init DB
  43. event_link("initialize-default-databases", "ipasserelle-update", "06");
  44. # Service IPMI
  45. service_link_enhanced("ipmi", "S26", "7");
  46. service_link_enhanced("ipmi", "K74", "6");
  47. # Autofs
  48. service_link_enhanced("autofs", "S28", "7");
  49. service_link_enhanced("autofs", "K72", "6");
  50. # Netfs
  51. service_link_enhanced("netfs", "S25", "7");
  52. service_link_enhanced("netfs", "K75", "6");
  53. # Panels
  54. panel_link('userinfo','manager');
  55. panel_link('userpanel-viewgroups','user');