2023-07-12 10:01:42 +02:00
|
|
|
#!/usr/bin/perl -w
|
|
|
|
|
|
|
|
use esmith::Build::CreateLinks qw(:all);
|
|
|
|
|
|
|
|
|
|
|
|
templates2events("/etc/oidentd_masq.conf", qw(
|
|
|
|
console-save
|
|
|
|
bootstrap-console-save
|
2024-04-04 16:12:20 +02:00
|
|
|
smeserver-oidentd-update));
|
2023-07-12 10:01:42 +02:00
|
|
|
|
|
|
|
templates2events("/etc/sysconfig/oidentd", qw(
|
|
|
|
console-save
|
|
|
|
bootstrap-console-save
|
|
|
|
post-install
|
|
|
|
post-upgrade
|
2024-04-04 16:12:20 +02:00
|
|
|
smeserver-oidentd-update));
|
2023-07-12 10:01:42 +02:00
|
|
|
|
|
|
|
#service restart
|
2024-04-04 16:12:20 +02:00
|
|
|
my $event = "smeserver-oidentd-update";
|
2023-07-12 10:01:42 +02:00
|
|
|
##will restart only if already running
|
|
|
|
#safe_symlink("try-restart", "root/etc/e-smith/events/$event/services2adjust/oidentd");
|
|
|
|
|
|
|
|
event_link("systemd-default", $event, "05");
|
|
|
|
event_link("systemd-reload", $event, "89");
|
|
|
|
|
|
|
|
#systemd link
|
|
|
|
foreach my $target (qw(multi-user sme-server))
|
|
|
|
{
|
|
|
|
foreach my $unit (qw(
|
|
|
|
oidentd
|
|
|
|
))
|
|
|
|
{
|
|
|
|
#default is disabled
|
|
|
|
# symlink("../$unit",
|
|
|
|
# "root/usr/lib/systemd/system/$target.target.wants/$unit")
|
|
|
|
# or die "Can't symlink to root/usr/lib/systemd/system/$target.target.wants/$unit: $!";
|
|
|
|
}
|
|
|
|
}
|