Skip to content

Commit a1ee77a

Browse files
author
Vladimir Kotal
committed
always use absolute path for webapp config file
1 parent e5e4204 commit a1ee77a

File tree

1 file changed

+3
-0
lines changed
  • opengrok-tools/src/main/python/opengrok_tools

1 file changed

+3
-0
lines changed

opengrok-tools/src/main/python/opengrok_tools/deploy.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ def deploy_war(logger, sourceWar, targetWar, configFile=None):
8181
tmpWar = None
8282
DEFAULT_CONFIG_FILE = '/var/opengrok/etc/configuration.xml'
8383
if configFile and configFile != DEFAULT_CONFIG_FILE:
84+
# Resolve the path to be absolute so that webapp can find the file.
85+
configFile = os.path.abspath(configFile)
86+
8487
with tempfile.NamedTemporaryFile(prefix='OpenGroktmpWar',
8588
suffix='.war',
8689
delete=False) as tmpWar:

0 commit comments

Comments
 (0)