25 lines
870 B
Plaintext
25 lines
870 B
Plaintext
|
#!/usr/bin/perl -w
|
||
|
|
||
|
use esmith::Build::CreateLinks qw(:all);
|
||
|
|
||
|
my @events = qw(bootstrap-console-save console-save post-install post-upgrade e-smith-nutUPS-update);
|
||
|
|
||
|
templates2events("/etc/sysconfig/ups", @events);
|
||
|
templates2events("/usr/lib/systemd/system/nut-server.service.d/50koozali.conf", @events);
|
||
|
templates2events("/usr/lib/systemd/system/nut-monitor.service.d/50koozali.conf", @events);
|
||
|
|
||
|
foreach (qw(ups.conf upsd.users upsmon.conf upssched.conf))
|
||
|
{
|
||
|
templates2events("/etc/ups/$_", @events);
|
||
|
}
|
||
|
|
||
|
foreach (qw(bootstrap-console-save console-save e-smith-nutUPS-update))
|
||
|
{
|
||
|
templates2events("/etc/ups/upsd.conf", $_);
|
||
|
}
|
||
|
|
||
|
my $event="e-smith-nutUPS-update";
|
||
|
safe_symlink("try-restart", "root/etc/e-smith/events/$event/services2adjust/nut");
|
||
|
templates2events("/etc/systemd/system-preset/49-koozali.preset", $event);
|
||
|
event_link("systemd-default", $event, "06");
|