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

warning in bin/upgrade if user changes image in docker-compose.override.yml

This commit is contained in:
Kagurazaka Tsuki 2023-11-28 13:59:49 -06:00
parent 36692fb2aa
commit ab051e8f11
No known key found for this signature in database
GPG key ID: 8C897843556CCE3F

View file

@ -118,6 +118,18 @@ function handle_image_upgrade() {
echo "Upgrading config/version from $user_image_version to $seed_image_version"
local docker_compose_override_path="$TOOLKIT_ROOT/config/docker-compose.override.yml"
if [ -f "$docker_compose_override_path" ]; then
if grep -E '^\s*image: sharelatex/sharelatex.*' "$docker_compose_override_path"; then
echo "WARNING: you are using a customized docker image, the server may not run on the latest version post upgrade."
echo "* If you have followed the guide 'Upgrading TexLive', please remove and recreate the modified image."
echo "* Remove the image: 'docker rm sharelatex/sharelatex:with-texlive-full'"
echo "* Remove the override file: 'rm config/docker-compose.override.yml'"
echo "* Recreate the image by following: https://github.com/overleaf/toolkit/blob/master/doc/ce-upgrading-texlive.md"
fi
fi
## Offer to stop docker services
local services_stopped="false"
if services_up; then