smeserver-openssh/createlinks
Jean-Philippe Pialasse 84bf8e5c22 * Sun Sep 22 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-9.sme
- remove reference to deprecated rssh [SME: 12670]
- template /etc/pam.d/sshd to remove motd [SME: 12740]
2024-09-22 22:43:22 -04:00

44 lines
1.1 KiB
Perl
Executable File

#!/usr/bin/perl -w
use strict;
use esmith::Build::CreateLinks qw(:all);
foreach (qw(
/etc/ssh/sshd_config
/etc/ssh/ssh_config
/etc/pam.d/sshd
))
{
templates2events("$_", qw(
console-save
bootstrap-console-save
remoteaccess-update
smeserver-openssh-update
));
}
foreach my $event (
"console-save",
"bootstrap-console-save",
"remoteaccess-update",
"smeserver-openssh-update"
)
{
event_link("sshd-conf", $event, "65");
}
foreach my $event (
"console-save",
"remoteaccess-update")
{
safe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/sshd");
}
my $event="smeserver-openssh-update";
# systemd-specific action mandatory for this package-update event
event_link("systemd-reload", $event, "89");
event_link("systemd-default", $event, "88");
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/sshd");
templates2events("/etc/rsyslog.conf",$event);
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog");