smeserver-update/createlinks
Jean-Philippe Pialasse 6e69a3f6e6 * Tue Apr 23 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-11.sme
- fix debuglevel=-2 not allowed [SME: 12637]
- force modules needed for core [SME: 12618]
  php:remi-8.3 perl:5.26 python36:3.6 mariadb:10.5
2024-04-23 12:18:22 -04:00

40 lines
1.2 KiB
Perl
Executable File

#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
use File::Basename;
use File::Path;
foreach my $file (qw(/etc/dnf/dnf.conf /etc/dnf/protected.d/smeserver.conf
/etc/yum.smerepos.d/sme-base.repo /etc/dnf/automatic.conf))
{
templates2events($file, qw(dnf-modify bootstrap-console-save smeserver-update-update));
}
templates2events("/etc/crontab", "dnf-modify");
for ( qw(install remove update) )
{
event_link("dnf-action", "dnf-$_", "20");
}
safe_symlink("restart", "root/etc/e-smith/events/dnf-modify/services2adjust/yum");
for ( qw(bootstrap-console-save dnf-update smeserver-update-update) )
{
event_link("rpm-import-keys", $_, "10");
}
my $event= "smeserver-update-update";
# systemd-specific action mandatory for this package-update event
event_link("systemd-reload", $event, "89");
event_link("systemd-default", $event, "88");
templates2events("/etc/rsyslog.conf",$event);
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog");
event_link("dnf_modules", 'post-install', "70");
#--------------------------------------------------
# functions for manager panel
#--------------------------------------------------
panel_link("yum", "manager");