generated from smedev/Template-for-SMEServer-Core-Package
Jean-Philippe Pialasse
6e69a3f6e6
- 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
40 lines
1.2 KiB
Perl
Executable File
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");
|