[Pkg-freeipa-devel] [Git][freeipa-team/dogtag-pki][master] 3 commits: hardcode-tomcat-version.diff: Our tomcat doesn't have a script to query the…

Timo Aaltonen gitlab at salsa.debian.org
Mon Aug 27 18:32:24 BST 2018


Timo Aaltonen pushed to branch master at FreeIPA packaging / dogtag-pki


Commits:
ba04d1b3 by Timo Aaltonen at 2018-08-27T17:25:18Z
hardcode-tomcat-version.diff: Our tomcat doesn't have a script to query the version, so hardcode it here so that 'pki-server migrate' works.

- - - - -
5b459bcc by Timo Aaltonen at 2018-08-27T17:30:23Z
run-pki-server-migrate-on-start.diff: Run 'pki-server migrate' on startup to match what the systemd service does.

- - - - -
932e8161 by Timo Aaltonen at 2018-08-27T17:30:57Z
releasing package dogtag-pki version 10.6.6-2

- - - - -


4 changed files:

- debian/changelog
- + debian/patches/hardcode-tomcat-version.diff
- + debian/patches/run-pki-server-migrate-on-start.diff
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+dogtag-pki (10.6.6-2) unstable; urgency=medium
+
+  * hardcode-tomcat-version.diff: Our tomcat doesn't have a script to
+    query the version, so hardcode it here so that 'pki-server migrate'
+    works.
+  * run-pki-server-migrate-on-start.diff: Run 'pki-server migrate' on
+    startup to match what the systemd service does.
+
+ -- Timo Aaltonen <tjaalton at debian.org>  Mon, 27 Aug 2018 20:30:44 +0300
+
 dogtag-pki (10.6.6-1) unstable; urgency=medium
 
   * New upstream release.


=====================================
debian/patches/hardcode-tomcat-version.diff
=====================================
@@ -0,0 +1,11 @@
+--- a/base/server/python/pki/server/__init__.py
++++ b/base/server/python/pki/server/__init__.py
+@@ -1067,7 +1067,7 @@ class Tomcat(object):
+     def get_version(cls):
+ 
+         # run "tomcat version"
+-        output = subprocess.check_output(['/usr/sbin/tomcat', 'version'])
++        output = 'Server version: Apache Tomcat/8.5.32'
+         output = output.decode('utf-8')
+ 
+         # find "Server version: Apache Tomcat/<version>"


=====================================
debian/patches/run-pki-server-migrate-on-start.diff
=====================================
@@ -0,0 +1,11 @@
+--- a/base/server/scripts/operations
++++ b/base/server/scripts/operations
+@@ -1078,6 +1078,8 @@ verify_symlinks()
+ 
+ start_deb_instance()
+ {
++    /usr/sbin/pki-server migrate --instance pki-tomcat
++
+     if start-stop-daemon --test --start --pidfile "$CATALINA_PID" \
+         --user $TOMCAT_USER --exec "$JAVA_HOME/bin/java" \
+         >/dev/null; then


=====================================
debian/patches/series
=====================================
@@ -1,4 +1,5 @@
 # upstreamed
+run-pki-server-migrate-on-start.diff
 
 # not upstreamable
 dont-install-deleted-files.diff
@@ -12,3 +13,4 @@ use-bash.diff
 create-target-wants.diff
 #use-resteasy-legacy.diff
 fix-tomcat-paths.diff
+hardcode-tomcat-version.diff



View it on GitLab: https://salsa.debian.org/freeipa-team/dogtag-pki/compare/159319a280060b7742399b4eddd2a4f8292c49ac...932e816155f6d8cdfe287dabae89cee02687e2c5

-- 
View it on GitLab: https://salsa.debian.org/freeipa-team/dogtag-pki/compare/159319a280060b7742399b4eddd2a4f8292c49ac...932e816155f6d8cdfe287dabae89cee02687e2c5
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-freeipa-devel/attachments/20180827/10a2a6b1/attachment-0001.html>


More information about the Pkg-freeipa-devel mailing list