From ed8fa8462b69b37f44d0e5b5bb65345ea96ecc45 Mon Sep 17 00:00:00 2001 From: Devrim Date: Wed, 2 Nov 2022 14:38:10 +0300 Subject: [PATCH] fix: jans-linux-setup render webapps.xml (#2839) --- .../jans_setup/setup_app/installers/jetty.py | 2 +- .../templates/jetty/default_webcontext.xml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 jans-linux-setup/jans_setup/templates/jetty/default_webcontext.xml diff --git a/jans-linux-setup/jans_setup/setup_app/installers/jetty.py b/jans-linux-setup/jans_setup/setup_app/installers/jetty.py index 7fb9f76937e..38290d9f0da 100644 --- a/jans-linux-setup/jans_setup/setup_app/installers/jetty.py +++ b/jans-linux-setup/jans_setup/setup_app/installers/jetty.py @@ -219,7 +219,7 @@ def installJettyService(self, serviceConfiguration, supportCustomizations=False, self.renderTemplateInOut( web_context, os.path.join(Config.templateFolder, NAME_STR), - out_file=os.path.join(self.jetty_base, serviceName, 'webapps/{}.xml'.format(serviceName)) + out_file=os.path.join(self.jetty_base, service_name, 'webapps/{}.xml'.format(service_name)) ) except: self.logIt("Error rendering service '%s' context xml" % service_name, True) diff --git a/jans-linux-setup/jans_setup/templates/jetty/default_webcontext.xml b/jans-linux-setup/jans_setup/templates/jetty/default_webcontext.xml new file mode 100644 index 00000000000..5ab8ae0ccf4 --- /dev/null +++ b/jans-linux-setup/jans_setup/templates/jetty/default_webcontext.xml @@ -0,0 +1,12 @@ + + + + + /%(service_name)s + + /%(service_name)s.war + + true + + +