* Sat May 11 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-12.sme

- revert plugin changes to force modules [SME: 12618]
- tag service to limit log noise in message [SME: 12668]
- sort nut service to restart [SME: 12662]
This commit is contained in:
Jean-Philippe Pialasse 2024-05-11 21:34:47 -04:00
parent 6e69a3f6e6
commit 45e3c516b5
9 changed files with 22 additions and 14 deletions

View File

@ -1,4 +1,5 @@
#dnf Koozali SME Server updater
#dnf Koozali SME Server updater, dnf automatic and dnf makecache
if $programname startswith "dnf_update_dbs" then /var/log/dnf/dnf-update.log
& stop
if $programname startswith "dnf-automatic" then stop
if $programname startswith "dnf-makecache" theb stop

View File

@ -50,7 +50,7 @@ servicenames['freeradius']='radiusd',
servicenames['httpd']='httpd-admin','httpd-e-smith',
servicenames['iptables']='masq',
servicenames['mariadb']='mariadb',
servicenames['nut']='nut-server','nut-driver','nut-monitor',
servicenames['nut']='nut',
servicenames['openldap']='ldap',
servicenames['openssh']='sshd',
servicenames['php']='httpd-e-smith', 'php72-php-fpm', 'php73-php-fpm', 'php74-php-fpm', 'php80-php-fpm', 'php81-php-fpm', 'php82-php-fpm', 'php83-php-fpm',
@ -122,19 +122,9 @@ class SMEServer(dnf.Plugin):
global ourfile
ourfile = True
self.report_yum_status('sack')
module_base = dnf.module.module_base.ModuleBase(self.base)
module_base.switch_to(['php:remi-8.3'])
module_base.switch_to(['perl:5.26'])
module_base.switch_to(['python36:3.6'])
module_base.switch_to(['mariadb:10.5'])
def resolved(self):
self.report_yum_status('resolved')
module_base = dnf.module.module_base.ModuleBase(self.base)
module_base.switch_to(['php:remi-8.3'])
module_base.switch_to(['perl:5.26'])
module_base.switch_to(['python36:3.6'])
module_base.switch_to(['mariadb:10.5'])
#2 PKG_DOWNGRADE = dnf.transaction.PKG_DOWNGRADE # :api
#1 PKG_INSTALL = dnf.transaction.PKG_INSTALL # :api

View File

@ -0,0 +1,2 @@
[Service]
SyslogIdentifier=dnf-automatic

View File

@ -0,0 +1,2 @@
[Service]
SyslogIdentifier=dnf-automatic

View File

@ -0,0 +1,2 @@
[Service]
SyslogIdentifier=dnf-automatic

View File

@ -0,0 +1,2 @@
[Service]
SyslogIdentifier=dnf-automatic

View File

@ -0,0 +1,3 @@
[Service]
SyslogIdentifier=dnf-makecache

View File

@ -4,6 +4,7 @@ After=network-pre.target networking.service
[Service]
Type=forking
SyslogIdentifier=dnf_update_dbs
ExecStartPre=/sbin/e-smith/service-status dnf
ExecStart=/sbin/e-smith/dnf_update_dbs
TimeoutSec=0

View File

@ -2,7 +2,7 @@
Summary: Koozali SME Server rpm updater
Name: %{name}
%define version 11.0.0
%define release 11
%define release 12
Version: %{version}
Release: %{release}%{?dist}
License: GPL
@ -68,6 +68,11 @@ mkdir -p root/etc/yum.smerepos.d
%changelog
* Sat May 11 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-12.sme
- revert plugin changes to force modules [SME: 12618]
- tag service to limit log noise in message [SME: 12668]
- sort nut service to restart [SME: 12662]
* 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]