Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
NyakudyaA committed Apr 24, 2023
1 parent d68e996 commit c069f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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|<cliendId>.*</cliendId>|<cliendId>{client_id}</cliendId>|g" {oauth_config}', pty=True)
ctx.run(
f'sed -i "s|<clientSecret>.*</clientSecret>|<clientSecret>{client_secret}</clientSecret>|g" {oauth_config}',
Expand Down

0 comments on commit c069f35

Please sign in to comment.