Rewrite base href in index.html

This commit is contained in:
Aaron Louie 2020-05-23 11:31:06 -04:00
parent 4147515938
commit 2f8bba4f37
1 changed files with 3 additions and 0 deletions

View File

@ -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@<base href\=\"\/\">@<base href\=\"'"$BASE_HREF"'\">@' "/usr/share/nginx/html/index.html"
# Execute all other commands with parameters
exec "${@:3}"