You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
smeserver-radiusd/createlinks

97 lines
2.6 KiB
Perl

#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
#--------------------------------------------------
# general radiusd configuration
#--------------------------------------------------
foreach (qw(raddb/radiusd.conf raddb/mods-config/files/authorize))
{
templates2events("/etc/$_", qw(
bootstrap-console-save
console-save
password-modify
remoteaccess-update
user-create
user-delete
user-lock
user-modify
user-modify-admin
smeserver-radiusd-update
));
}
templates2events("/etc/raddb/radiusd.conf", "bootstrap-ldap-save");
templates2events("/etc/radiusclient/radiusclient.conf", "bootstrap-console-save");
templates2events("/etc/raddb/radiusd.conf", "smeserver-radiusd-update");
templates2events("/etc/radiusclient/radiusclient.conf", "smeserver-radiusd-update");
foreach (qw(
raddb/clients.conf
raddb/mods-available/eap
raddb/mods-available/ldap
raddb/mods-available/smbpasswd
raddb/sites-available/default
raddb/sites-available/inner-tunnel
raddb/proxy.conf
radiusclient/servers
raddb/mods-config/files/authorize))
{
templates2events("/etc/$_", qw(
bootstrap-console-save
console-save
domain-modify
remoteaccess-update
ldap-update
smeserver-radiusd-update
));
}
foreach (qw(
radiusclient/dictionary
radiusclient/dictionary.microsoft))
{
templates2events("/usr/share/$_", qw(
bootstrap-console-save
console-save
domain-modify
remoteaccess-update
ldap-update
smeserver-radiusd-update
));
}
foreach $event ( qw(
console-save
domain-modify
ldap-update
password-modify
remoteaccess-update
user-create
user-delete
user-lock
user-modify
user-modify-admin
) )
{
safe_symlink("sigterm", "root/etc/e-smith/events/$event/services2adjust/radiusd");
}
$event="smeserver-radiusd-update";
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/radiusd");
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog");
templates2events("/etc/rsyslog.conf",$event);
# systemd-specific action mandatory for this package-update event
event_link("systemd-reload", $event, "89");
event_link("systemd-default", $event, "88");
templates2events("/etc/raddb/certs/radiusd.pem", qw( bootstrap-console-save ssl-update smeserver-radiusd-update) );
safe_symlink("restart", "root/etc/e-smith/events/ssl-update/services2adjust/radiusd");
# activate modules
#safe_symlink("../mods-available/realm", "root/etc/raddb/mods-enabled/realm");
safe_symlink("../mods-available/ldap", "root/etc/raddb/mods-enabled/ldap");
safe_symlink("../mods-available/smbpasswd", "root/etc/raddb/mods-enabled/smbpasswd");