Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 910419 Details for
Bug 1111143
dnssec-trigger-script: offer a seamless upgrade from pre-0.12 (without unbound restart)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
fix
0004-upgrade-zone-cache-format-at-startup.patch (text/plain), 1.43 KB, created by
Pavel Šimerda (pavlix)
on 2014-06-19 14:32:37 UTC
(
hide
)
Description:
fix
Filename:
MIME Type:
Creator:
Pavel Šimerda (pavlix)
Created:
2014-06-19 14:32:37 UTC
Size:
1.43 KB
patch
obsolete
>From 89294c26c186a7defecca8bda3b92b6213fc2cc0 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Pavel=20=C5=A0imerda?= <psimerda@redhat.com> >Date: Thu, 19 Jun 2014 16:11:19 +0200 >Subject: [PATCH 4/4] upgrade zone cache format at startup > >--- > dnssec-trigger-script.in | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > >diff --git a/dnssec-trigger-script.in b/dnssec-trigger-script.in >index 5f94a21..a559afe 100644 >--- a/dnssec-trigger-script.in >+++ b/dnssec-trigger-script.in >@@ -6,7 +6,7 @@ > """ > > from gi.repository import NMClient >-import os, sys, shutil, subprocess >+import os, sys, shutil, glob, subprocess > import logging, logging.handlers > import socket, struct > >@@ -365,6 +365,16 @@ class Application: > def run_prepare(self): > """Prepare for dnssec-trigger.""" > >+ old_zones = glob.glob("/var/run/dnssec-trigger/????????-????-????-????-????????????") >+ if old_zones: >+ log.info("Converting to new zone cache format") >+ with open("/var/run/dnssec-trigger/zones", "a") as target: >+ for filename in old_zones: >+ with open(filename) as source: >+ for line in source: >+ print(line.strip(), file=target) >+ os.remove(filename) >+ > if not self.nm_handles_resolv_conf(): > log.info("Backing up /etc/resolv.conf") > shutil.copy(self.resolvconf, self.resolvconf_backup) >-- >1.8.5.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1111143
: 910419 |
911414