mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 15:28:06 +02:00
Merge pull request #240 from overleaf/jpa-retract-5-0-1
Retract Server Pro version 5.0.1
This commit is contained in:
commit
5ea0d7068d
6 changed files with 32 additions and 2 deletions
|
@ -1,5 +1,11 @@
|
|||
# Changelog
|
||||
|
||||
## 2024-04-18
|
||||
### Fixed
|
||||
- Retracted release 5.0.1
|
||||
|
||||
:warning: We have identified a critical bug in a database migration that causes data loss. Please defer upgrading to release 5.0.1 until further notice on the mailing list. Please hold on to any backups that were taken prior to upgrading to version 5.0.1.
|
||||
|
||||
## 2024-04-09
|
||||
### Added
|
||||
|
||||
|
|
|
@ -208,6 +208,7 @@ function docker_compose() {
|
|||
|
||||
read_image_version
|
||||
read_config
|
||||
check_retracted_version
|
||||
check_sharelatex_env_vars
|
||||
build_environment
|
||||
print_debug_info "$@"
|
||||
|
|
|
@ -448,6 +448,7 @@ function cleanup() {
|
|||
function __main__() {
|
||||
read_image_version
|
||||
print_section_separator "Overleaf Doctor"
|
||||
check_retracted_version
|
||||
check_sharelatex_env_vars
|
||||
check_host_information
|
||||
check_dependencies
|
||||
|
|
|
@ -241,6 +241,7 @@ function __main__() {
|
|||
|
||||
read_seed_image_version
|
||||
read_image_version
|
||||
check_retracted_version
|
||||
handle_rc_rebranding
|
||||
handle_image_upgrade
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
5.0.1
|
||||
4.2.4
|
||||
|
|
|
@ -10,12 +10,33 @@ function read_config() {
|
|||
|
||||
function read_image_version() {
|
||||
IMAGE_VERSION="$(head -n 1 "$TOOLKIT_ROOT/config/version")"
|
||||
if [[ ! "$IMAGE_VERSION" =~ ^([0-9]+)\.([0-9]+)\.[0-9]+(-RC[0-9]*)?(-with-texlive-full)?$ ]]; then
|
||||
if [[ ! "$IMAGE_VERSION" =~ ^([0-9]+)\.([0-9]+)\.([0-9])+(-RC[0-9]*)?(-with-texlive-full)?$ ]]; then
|
||||
echo "ERROR: invalid version '${IMAGE_VERSION}'"
|
||||
exit 1
|
||||
fi
|
||||
IMAGE_VERSION_MAJOR=${BASH_REMATCH[1]}
|
||||
IMAGE_VERSION_MINOR=${BASH_REMATCH[2]}
|
||||
IMAGE_VERSION_PATCH=${BASH_REMATCH[3]}
|
||||
}
|
||||
|
||||
function check_retracted_version() {
|
||||
local version="$IMAGE_VERSION_MAJOR.$IMAGE_VERSION_MINOR.$IMAGE_VERSION_PATCH"
|
||||
if [[ "$version" == "5.0.1" ]]; then
|
||||
echo "-------------------------------------------------------"
|
||||
echo "--------------------- WARNING -----------------------"
|
||||
echo "-------------------------------------------------------"
|
||||
echo " You are currently using a retracted version, $version."
|
||||
echo ""
|
||||
echo " We have identified a critical bug in a database migration that causes data loss."
|
||||
echo " Please defer upgrading to release 5.0.1 until further notice on the mailing list."
|
||||
echo " Please keep any backups that were taken prior to upgrading to version 5.0.1."
|
||||
echo " Updates will be posted in the release notes:"
|
||||
echo " https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#server-pro-501-retracted"
|
||||
echo "-------------------------------------------------------"
|
||||
echo "--------------------- WARNING -----------------------"
|
||||
echo "-------------------------------------------------------"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
prompt() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue