1
0
Fork 0
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:
Miguel Serrano 2022-08-31 11:10:37 +02:00 committed by GitHub
parent 46ad6309c9
commit fb4fb75dac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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