alfresco-content-app/docker-entrypoint.sh
Sergiu Vidrascu 776b2e9e18 fix #653 - fixing issue caused by missing \ in docker entrypoint (#655)
* fix #653 : add basepath modification at runtime trough env vars

* Fix typo in sed command
2018-09-21 18:08:38 +01:00

11 lines
259 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;"