2023-07-12 10:05:44 +02:00
|
|
|
#!/usr/bin/perl -w
|
|
|
|
|
|
|
|
use esmith::Build::CreateLinks qw(:all);
|
|
|
|
|
|
|
|
safe_symlink("proftpd", "root/var/service/ftp");
|
|
|
|
|
|
|
|
templates2events("/etc/logrotate.d/proftpd", qw(
|
|
|
|
bootstrap-console-save
|
2024-04-04 16:12:31 +02:00
|
|
|
smeserver-proftpd-update
|
2023-07-12 10:05:44 +02:00
|
|
|
));
|
|
|
|
templates2events("/etc/pam.d/ftp", qw(
|
|
|
|
bootstrap-console-save
|
2024-04-04 16:12:31 +02:00
|
|
|
smeserver-proftpd-update
|
2023-07-12 10:05:44 +02:00
|
|
|
));
|
|
|
|
templates2events("/etc/ftpusers", qw(
|
|
|
|
bootstrap-console-save
|
|
|
|
network-create
|
|
|
|
network-delete
|
|
|
|
remoteaccess-update
|
|
|
|
password-modify
|
|
|
|
user-lock
|
2024-04-04 16:12:31 +02:00
|
|
|
smeserver-proftpd-update
|
2023-07-12 10:05:44 +02:00
|
|
|
));
|
|
|
|
|
|
|
|
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
|
2024-04-04 16:12:31 +02:00
|
|
|
smeserver-proftpd-update
|
2023-07-12 10:05:44 +02:00
|
|
|
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
|
2024-04-04 16:12:31 +02:00
|
|
|
smeserver-proftpd-update
|
2023-07-12 10:05:44 +02:00
|
|
|
))
|
|
|
|
{
|
|
|
|
templates2events("/var/service/ftp/peers/0", $event);
|
|
|
|
templates2events("/var/service/ftp/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");
|
|
|
|
|
2024-04-04 16:12:31 +02:00
|
|
|
my $event = 'smeserver-proftpd-update';
|
2023-07-12 10:05:44 +02:00
|
|
|
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);
|
|
|
|
|
|
|
|
exit 0;
|