mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 15:28:06 +02:00
Update messaging for retraction of 5.0.1
Co-authored-by: Miguel Serrano <mserranom@gmail.com> Co-authored-by: Brian Gough <brian.gough@overleaf.com>
This commit is contained in:
parent
dba8a19841
commit
d9c62b53c0
1 changed files with 16 additions and 12 deletions
|
@ -20,19 +20,23 @@ function read_image_version() {
|
|||
}
|
||||
|
||||
function check_retracted_version() {
|
||||
local retracted_versions=(
|
||||
"5.0.1"
|
||||
)
|
||||
local version="$IMAGE_VERSION_MAJOR.$IMAGE_VERSION_MINOR.$IMAGE_VERSION_PATCH"
|
||||
for v in "${retracted_versions[@]}"; do
|
||||
if [[ "$version" == "$v" ]]; then
|
||||
echo "-------------------------------------------------------"
|
||||
echo " You are currently using a retracted version, $v."
|
||||
echo " Please check the release notes for further details."
|
||||
echo "-------------------------------------------------------"
|
||||
prompt "Ignore warning?"
|
||||
fi
|
||||
done
|
||||
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