generated from smedev/Template-for-SMEServer-Core-Package
* Mon Mar 25 2024 Jean-Philippe Pialasse <jpp@koozali.org> 2.6.2-9.sme
- initial release of smeserver-update based on smeserver-yum * tidy centos repos, add rocky repos, add support for metalinks, tidy most references to yum (except manager), tidy config and templates * yum-cron moved to dnf-automatic, * rename yum_** esmith db, except yum_repositories * moved yum.conf to dnf.conf with deltarpm , fastestmirror support * add requirement for dnf post-transaction-actions * adapt setting for priorities * renamed yum.service to dnf.service * TODO smeserver.py plugin
This commit is contained in:
@@ -23,6 +23,11 @@
|
||||
if ($check4contribsupdates) {
|
||||
$DB->get('dnf')->delete_prop('check4contribsupdates');
|
||||
}
|
||||
my $output_width = $DB->get_prop('dnf','output_width');
|
||||
if ($output_width) {
|
||||
$DB->get('dnf')->delete_prop('output_width');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1 @@
|
||||
fastestmirror={( ( $dnf{fastestmirror} ||'enabled') eq "enabled")?1:0;}
|
@@ -21,7 +21,7 @@ dnf_update_dbs = events_path + '/actions/yum-update-dbs'
|
||||
Conflicts=yum-cron.service dnf-automatic-notifyonly.service dnf-automatic.service
|
||||
signal_event = '/sbin/e-smith/signal-event'
|
||||
config_set = '/sbin/e-smith/config'
|
||||
status_file = '/var/run/yum.status'
|
||||
status_file = '/var/cache/dnf/dnf.status'
|
||||
expand_template = '/sbin/e-smith/expand-template'
|
||||
service = '/sbin/e-smith/service'
|
||||
|
||||
@@ -432,8 +432,8 @@ def posttrans_hook(conduit):
|
||||
os.spawnl(os.P_WAIT, systemctl, systemctl, 'restart', 'yum')
|
||||
|
||||
def close_hook(conduit):
|
||||
if ourfile and os.path.isfile('/var/run/yum.status'):
|
||||
os.unlink('/var/run/yum.status')
|
||||
if ourfile and os.path.isfile(status_file):
|
||||
os.unlink(status_file)
|
||||
|
||||
if smechange:
|
||||
print "\nThe following updates require a server reboot:\n" + str(smechangelist.keys())
|
||||
|
@@ -286,7 +286,7 @@ sub print_yum_status_page
|
||||
my ($fm) = @_;
|
||||
my @yum_status;
|
||||
|
||||
if (open(YUM_STATUS, "</var/run/yum.status")) {
|
||||
if (open(YUM_STATUS, "</var/cache/dnf/dnf.status")) {
|
||||
@yum_status = <YUM_STATUS>;
|
||||
close(YUM_STATUS);
|
||||
}
|
||||
|
Reference in New Issue
Block a user