1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 15:28:06 +02:00

Flag old TEXMFVAR entry in config/variables.env

REF: 1829e7ee2a
This commit is contained in:
Jakob Ackermann 2024-03-05 12:41:25 +00:00
parent fdec084056
commit f8d14ed8af
No known key found for this signature in database
GPG key ID: 30C56800FCA3828A

View file

@ -88,4 +88,16 @@ function check_sharelatex_env_vars() {
fi
exit 1
fi
if [[ ! "$IMAGE_VERSION_MAJOR" -lt 5 ]]; then
if grep -q -e 'TEXMFVAR=/var/lib/sharelatex/tmp/texmf-var' "$TOOLKIT_ROOT/config/variables.env"; then
echo "Rebranding from ShareLaTeX to Overleaf"
echo " The 'TEXMFVAR' override is not needed since Server Pro/Overleaf CE version 3.2 (August 2022) and it conflicts with the rebranded paths."
echo " Please remove the following entry from your config/variables.env:"
echo ""
echo " TEXMFVAR=/var/lib/sharelatex/tmp/texmf-var"
echo ""
exit 1
fi
fi
}