92 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Perl
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			92 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Perl
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/perl -w
 | 
						|
 | 
						|
use esmith::Build::CreateLinks qw(:all);
 | 
						|
 | 
						|
templates2events("/etc/logrotate.d/proftpd", qw(
 | 
						|
	bootstrap-console-save
 | 
						|
	smeserver-proftpd-update
 | 
						|
	));
 | 
						|
templates2events("/etc/pam.d/ftp", qw(
 | 
						|
	bootstrap-console-save
 | 
						|
	smeserver-proftpd-update
 | 
						|
	));
 | 
						|
templates2events("/etc/ftpusers", qw(
 | 
						|
	bootstrap-console-save
 | 
						|
	network-create
 | 
						|
	network-delete
 | 
						|
	remoteaccess-update
 | 
						|
	password-modify
 | 
						|
	user-lock
 | 
						|
	smeserver-proftpd-update
 | 
						|
	));
 | 
						|
 | 
						|
templates2events("/etc/proftpd.conf", qw(
 | 
						|
	console-save
 | 
						|
	bootstrap-console-save
 | 
						|
	domain-create
 | 
						|
	domain-delete
 | 
						|
	domain-modify
 | 
						|
	ibay-create
 | 
						|
	ibay-delete
 | 
						|
	ibay-modify
 | 
						|
	ibay-modify-servers
 | 
						|
	ip-change
 | 
						|
	network-create
 | 
						|
	network-delete
 | 
						|
	remoteaccess-update
 | 
						|
	password-modify
 | 
						|
	smeserver-proftpd-update
 | 
						|
	ssl-update
 | 
						|
	));
 | 
						|
 | 
						|
templates2events("/usr/lib/systemd/system/ftp.service.d/50koozali.conf", qw(
 | 
						|
        bootstrap-console-save
 | 
						|
        smeserver-proftpd-update
 | 
						|
        ssl-update
 | 
						|
        ));
 | 
						|
 | 
						|
 | 
						|
foreach my $event (qw(
 | 
						|
    remoteaccess-update))
 | 
						|
{
 | 
						|
    safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/ftp");
 | 
						|
}
 | 
						|
 | 
						|
foreach my $event (qw(
 | 
						|
    bootstrap-console-save
 | 
						|
    network-create
 | 
						|
    remoteaccess-update
 | 
						|
    network-delete
 | 
						|
    smeserver-proftpd-update
 | 
						|
    ))
 | 
						|
{
 | 
						|
    templates2events("/var/service/proftpd/peers/0", $event);
 | 
						|
    templates2events("/var/service/proftpd/peers/local", $event);
 | 
						|
}
 | 
						|
foreach my $event (qw(
 | 
						|
    network-create
 | 
						|
    network-delete
 | 
						|
    ))
 | 
						|
{
 | 
						|
    safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/ftp");
 | 
						|
}
 | 
						|
 | 
						|
safe_symlink("restart", "root/etc/e-smith/events/ssl-update/services2adjust/ftp");
 | 
						|
 | 
						|
my $event = 'smeserver-proftpd-update';
 | 
						|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ftp");
 | 
						|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog");
 | 
						|
templates2events("/etc/systemd/system-preset/49-koozali.preset", $event);
 | 
						|
event_link("systemd-reload", $event, "89");
 | 
						|
templates2events("/etc/rsyslog.conf", $event);
 | 
						|
 | 
						|
$event = "dhparam-update";
 | 
						|
templates2events("/etc/proftpd.conf", $event);
 | 
						|
safe_symlink("try-restart", "root/etc/e-smith/events/$event/services2adjust/proftpd"); 
 | 
						|
 | 
						|
$event = "smeserver-base-update";
 | 
						|
templates2events("/etc/proftpd.conf", $event);
 | 
						|
safe_symlink("try-restart", "root/etc/e-smith/events/$event/services2adjust/proftpd");
 | 
						|
 | 
						|
exit 0;
 |