Skip to content

Commit

Permalink
chore(docker): TRAME_URL_PREFIX patch <base href>
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Aug 7, 2024
1 parent 799f388 commit bc95b9f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker/scripts/runtime_patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,12 @@ then
echo -e "$OUTPUT" > "${CONFIG_OUTPUT}"

service apache2 restart

# Fix index.html <base href=".">
FILE_TO_PATCH=/deploy/server/www/index.html
OUTPUT=$(<"${FILE_TO_PATCH}")
BASE_OLD='<base href=".">'
BASE_NEW="<base href=\"$TRAME_URL_PREFIX/\">"
OUTPUT="${OUTPUT//$BASE_OLD/$BASE_NEW}"
echo -e "$OUTPUT" > "${FILE_TO_PATCH}"
fi

0 comments on commit bc95b9f

Please sign in to comment.