mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 15:28:06 +02:00
Print expected prefix when checking variables.env
This commit is contained in:
parent
8fbe2be217
commit
9a9c5b5512
1 changed files with 3 additions and 1 deletions
|
@ -33,8 +33,10 @@ function check_sharelatex_env_vars() {
|
|||
exit 1
|
||||
fi
|
||||
|
||||
local expected_prefix="OVERLEAF_"
|
||||
local invalid_prefix="SHARELATEX_"
|
||||
if [[ "$IMAGE_VERSION_MAJOR" -lt 5 ]]; then
|
||||
expected_prefix="SHARELATEX_"
|
||||
invalid_prefix="OVERLEAF_"
|
||||
fi
|
||||
|
||||
|
@ -44,7 +46,7 @@ function check_sharelatex_env_vars() {
|
|||
echo "Rebranding from ShareLaTeX to Overleaf"
|
||||
echo " Starting with Overleaf CE and Server Pro version 5.0.0 the environment variables will use the Overleaf brand."
|
||||
echo " Previous versions used the ShareLaTeX brand for environment variables."
|
||||
echo " Your config/variables.env has $env_occurrences entries matching '$invalid_prefix'."
|
||||
echo " Your config/variables.env has $env_occurrences entries matching '$invalid_prefix', expected prefix '$expected_prefix'."
|
||||
echo " Please align your config/version with the naming scheme of variables in config/variables.env."
|
||||
if [[ ! "$IMAGE_VERSION_MAJOR" -lt 5 ]]; then
|
||||
echo " You can migrate your config/variables.env to use the Overleaf brand by running:"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue