[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Pki-devel] [PATCH] 812 Moved upgrade scripts for RHEL.



On RHEL the upgrade scripts after 10.3.3 have been moved into the
10.3.3 folder to match RHEL version number.

https://fedorahosted.org/pki/ticket/2403

Pushed to master under one-liner/trivial rule.

--
Endi S. Dewata
>From 1d0abd0630d5847c288c65a7adeff580c9c9776b Mon Sep 17 00:00:00 2001
From: "Endi S. Dewata" <edewata redhat com>
Date: Sat, 6 Aug 2016 02:33:53 +0200
Subject: [PATCH] Moved upgrade scripts for RHEL.

On RHEL the upgrade scripts after 10.3.3 have been moved into the
10.3.3 folder to match RHEL version number.

https://fedorahosted.org/pki/ticket/2403
---
 specs/pki-core.spec | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/specs/pki-core.spec b/specs/pki-core.spec
index 12f1d946768a877d37c2f6baf9f07eceeb098c02..98dad00ce8438c658cc6a2e9ec8622e05a5991a0 100644
--- a/specs/pki-core.spec
+++ b/specs/pki-core.spec
@@ -867,6 +867,12 @@ ln -s %{_datadir}/pki/java-tools/KRATool.cfg %{buildroot}%{_datadir}/pki/java-to
 # Create compatibility symlink for DRMTool.1.gz -> KRATool.1.gz
 ln -s %{_mandir}/man1/KRATool.1.gz %{buildroot}%{_mandir}/man1/DRMTool.1.gz
 
+# Customize system upgrade scripts in /usr/share/pki/upgrade
+%if 0%{?rhel}
+/bin/rm -rf %{buildroot}%{_datadir}/pki/upgrade/10.3.4
+/bin/rm -rf %{buildroot}%{_datadir}/pki/upgrade/10.3.5
+%endif
+
 # Customize client library links in /usr/share/pki/lib
 %if 0%{?fedora} >= 24
     rm -f %{buildroot}%{_datadir}/pki/lib/scannotation.jar
@@ -893,6 +899,14 @@ fi
 
 %if %{with server}
 
+# Customize server upgrade scripts in /usr/share/pki/server/upgrade
+%if 0%{?rhel}
+mv %{buildroot}%{_datadir}/pki/server/upgrade/10.3.5/01-FixServerLibrary %{buildroot}%{_datadir}/pki/server/upgrade/10.3.3/02-FixServerLibrary
+mv %{buildroot}%{_datadir}/pki/server/upgrade/10.3.5/02-FixSELinuxContexts %{buildroot}%{_datadir}/pki/server/upgrade/10.3.3/03-FixSELinuxContexts
+/bin/rm -rf %{buildroot}%{_datadir}/pki/server/upgrade/10.3.4
+/bin/rm -rf %{buildroot}%{_datadir}/pki/server/upgrade/10.3.5
+%endif
+
 # Customize server library links in /usr/share/pki/server/common/lib
 %if 0%{?fedora} >= 24
     rm -f %{buildroot}%{_datadir}/pki/server/common/lib/scannotation.jar
-- 
2.5.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]