From c069f3588fff4b0842118669ad4bf2fc141c3229 Mon Sep 17 00:00:00 2001 From: Admire Nyakudya Date: Mon, 24 Apr 2023 14:36:07 +0200 Subject: [PATCH] fix #10963 --- tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 9007e68237e..b70dbf7ac2e 100755 --- a/tasks.py +++ b/tasks.py @@ -355,7 +355,7 @@ def prepare(ctx): new_ext_ip = os.environ["SITEURL"] client_id = os.environ["OAUTH2_CLIENT_ID"] client_secret = os.environ["OAUTH2_CLIENT_SECRET"] - oauth_config = "/geoserver_data/data/security/filter/geonode-oauth2/config.xml" + oauth_config = f"{os.environ['GEOSERVER_DATA_DIR']}/security/filter/geonode-oauth2/config.xml" ctx.run(f'sed -i "s|.*|{client_id}|g" {oauth_config}', pty=True) ctx.run( f'sed -i "s|.*|{client_secret}|g" {oauth_config}',