From 2f8bba4f379b6486c0e8108b40c2c4986f435de8 Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Sat, 23 May 2020 11:31:06 -0400 Subject: [PATCH] Rewrite base href in index.html --- docker/substitute-env-variables.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/substitute-env-variables.sh b/docker/substitute-env-variables.sh index 3a191b8..c61fa2a 100755 --- a/docker/substitute-env-variables.sh +++ b/docker/substitute-env-variables.sh @@ -32,5 +32,8 @@ do echo "$env_var = ${!env_var}" done +# Rewrite base href in index.html. Use @ as a sed delimiter because $BASE_HREF will contain a / character +sed -i -e 's@@@' "/usr/share/nginx/html/index.html" + # Execute all other commands with parameters exec "${@:3}"