From c9e90cc827524f2141ae25795399ae1d8fb82ee8 Mon Sep 17 00:00:00 2001 From: Danislav Date: Fri, 13 Mar 2020 20:37:45 +0100 Subject: [PATCH] db_port setting missing (#11284) If db_port is set in the config.php, services-wrapper will not work. This fixes the issue and adds a check if db_port is set to be used as the DB port when connecting. I used 'if SETTING in config' method as this is used below in the script. --- services-wrapper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services-wrapper.py b/services-wrapper.py index ac230574c6..1da03a3a5b 100755 --- a/services-wrapper.py +++ b/services-wrapper.py @@ -99,6 +99,9 @@ elif config['db_socket']: elif ':' in config['db_host']: db_server = config['db_host'].rsplit(':')[0] db_port = int(config['db_host'].rsplit(':')[1]) +elif 'db_port' in config: + db_server = config['db_host'] + db_port = config['db_port'] else: db_server = config['db_host'] db_port = 0