25 lines
		
	
	
		
			876 B
		
	
	
	
		
			Perl
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			876 B
		
	
	
	
		
			Perl
		
	
	
	
	
	
| #!/usr/bin/perl -w
 | |
| 
 | |
| use esmith::Build::CreateLinks  qw(:all);
 | |
| 
 | |
| my @events = qw(bootstrap-console-save console-save post-install post-upgrade smeserver-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 smeserver-nutUPS-update))
 | |
| {
 | |
|     templates2events("/etc/ups/upsd.conf", $_);
 | |
| }
 | |
| 
 | |
| my $event="smeserver-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");
 |