alfresco-content-app/docker-entrypoint.sh
Sergiu Vidrascu 912dab64f3 Typo fix #653 (#663)
* fix #653 : add basepath modification at runtime trough env vars

* Fix typo in sed command

* Another typo fix
2018-09-24 10:12:18 +01:00

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;"