mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 15:28:06 +02:00
Fix unbound variable
error (#107)
`SHARELATEX_LISTEN_IP ` might be not defined in old configs, so we skip temporarily the check of unset variables with `set +u`
This commit is contained in:
parent
46ad6309c9
commit
fb4fb75dac
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ function __main__() {
|
|||
NGINX_ENABLED="false"
|
||||
fi
|
||||
|
||||
if [ -z ${SHARELATEX_LISTEN_IP} ];
|
||||
if [ "${SHARELATEX_LISTEN_IP:-null}" == "null" ];
|
||||
then
|
||||
echo "WARNING: the value of SHARELATEX_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"
|
||||
SHARELATEX_LISTEN_IP="0.0.0.0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue