mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 15:28:06 +02:00
Provide fallback to ShareLaTeX branded rc entry in 4.x setups
This commit is contained in:
parent
3d5f07dc2e
commit
1c537e5627
1 changed files with 2 additions and 0 deletions
|
@ -65,12 +65,14 @@ function set_base_vars() {
|
|||
fi
|
||||
export IMAGE="$image_name:$IMAGE_VERSION"
|
||||
|
||||
OVERLEAF_LISTEN_IP=${OVERLEAF_LISTEN_IP:-${SHARELATEX_LISTEN_IP:-}}
|
||||
if [[ ${OVERLEAF_LISTEN_IP:-null} == "null" ]];
|
||||
then
|
||||
echo "WARNING: the value of OVERLEAF_LISTEN_IP is not set in config/overleaf.rc. This value must be set to the public IP address for direct container access. Defaulting to 0.0.0.0" >&2
|
||||
OVERLEAF_LISTEN_IP="0.0.0.0"
|
||||
fi
|
||||
export OVERLEAF_LISTEN_IP
|
||||
OVERLEAF_PORT=${OVERLEAF_PORT:-${SHARELATEX_PORT:-}}
|
||||
|
||||
if [[ $SERVER_PRO != "true" || $IMAGE_VERSION_MAJOR -lt 4 ]]; then
|
||||
# Force git bridge to be disabled if not ServerPro >= 4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue