#!/usr/bin/perl -w use esmith::Build::CreateLinks qw(:all); foreach my $event (qw/user-create user-modify group-create group-modify group-delete ldap-update bootstrap-ldap-save/){ event_link("update-reverse-group", "$event", "85"); } foreach my $event (qw/user-modify user-modify-admin pseudonym-create pseudonym-modify pseudonym-delete ldap-update bootstrap-ldap-save/){ event_link("update-ldap-pseudonyms", "$event", "86"); } # Initialisation des comptes, partages et domaines foreach my $event (qw/ipasserelle-update bootstrap-ldap-save/){ event_link("ipasserelle-init-accounts", "$event", "10"); event_link("ipasserelle-init-shares", "$event", "15"); event_link("ipasserelle-init-domains", "$event", "20"); } # Generateur de signature foreach my $event (qw/ipasserelle-update bootstrap-console-save user-create user-modify user-modify-admin ldap-update/){ event_link("generate-email-sign", "$event", "50"); } # Initialisation des domaines foreach my $event (qw/ipasserelle-update bootstrap-ldap-save/){ event_link("private-cacert", "$event", "25"); } # Activation de qmail-notify templates2events("/etc/cron.hourly/qmail-notify", qw(email-update bootstrap-console-save)); # Desactivation des checks RAID templates2events("/etc/sysconfig/raid-check", qw(ipasserelle-update bootstrap-console-save)); # Config des panels event_link("conf-userpanelsymlinks", "ipasserelle-update", "60"); # Reset unsavedchange event_link("reset-unsavedflag", "ipasserelle-update", "80"); safe_symlink("sighup", "root/etc/e-smith/events/ipasserelle-update/services2adjust/smbd"); # Permissions scan event_link("share-modify-scan", "user-create", "80"); event_link("share-modify-scan", "user-delete", "80"); event_link("share-modify-scan", "ipasserelle-update", "80"); # Update LDAP attr on user-modify event_link("ldap-update-info", "user-modify", "89"); event_link("ldap-update-info", "user-modify-admin", "89"); event_link("ldap-update-info", "ldap-update", "89"); event_link("ldap-update-info", "bootstrap-ldap-save", "89"); # Init DB event_link("initialize-default-databases", "ipasserelle-update", "06"); # Service IPMI service_link_enhanced("ipmi", "S26", "7"); service_link_enhanced("ipmi", "K74", "6"); # Autofs service_link_enhanced("autofs", "S28", "7"); service_link_enhanced("autofs", "K72", "6"); # Panels panel_link('userinfo','manager'); panel_link('userpanel-viewgroups','user');