mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
* fix #653 : add basepath modification at runtime trough env vars * Fix typo in sed command * Another typo fix
11 lines
258 B
Bash
11 lines
258 B
Bash
#!/bin/sh
|
|
|
|
if [[ $ACSURL ]]; then
|
|
sed -i s%{protocol}//{hostname}{:port}%"$ACSURL"%g /usr/share/nginx/html/app.config.json
|
|
fi
|
|
if [[ $BASEPATH ]]; then
|
|
sed -i s%href=\"/\"%href=\""$BASEPATH"\"%g /usr/share/nginx/html/index.html
|
|
fi
|
|
|
|
nginx -g "daemon off;"
|