Skip to content

Commit 343f51e

Browse files
ViacheslavKlimovclaude
authored andcommitted
Fix upgrade script notice to include intermediate versions for latest patches
For the latest patch per family (4.2.2, 4.3.1), the "DO NOT run upgrade script" notice now covers all intermediate maintenance versions (e.g., 4.2.1+ instead of only 4.2.2.x, and 4.3.0+ instead of only 4.3.1.x). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7ed5a30 commit 343f51e

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

_includes/centos-upgrade-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Package installer may ask you to merge your ThingsBoard configuration. It is pre
164164
{% assign base_version_parts = base_version | split: "." %}
165165
{% assign patch_part = base_version_parts[2] %}
166166
{% if patch_status == "true" %}
167-
If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: patch_part | append: ".x" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.
167+
{% if is_latest_patch == "true" %}{% assign prev_maintenance = patch_part | minus: 1 %}If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: prev_maintenance | append: "+" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.{% else %}If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: patch_part | append: ".x" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.{% endif %}
168168
{% else %}
169169
If you are upgrading from version {{ previous_version }}, you must run the script below
170170
{% endif %}

_includes/docs/pe/user-guide/install/new-docker-upgrade-steps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{% assign base_version_parts = base_version | split: "." %}
77
{% assign patch_part = base_version_parts[2] %}
88
{% if patch_status == "true" %}
9-
If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: patch_part | append: ".x" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.
9+
{% if is_latest_patch == "true" %}{% assign prev_maintenance = patch_part | minus: 1 %}If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: prev_maintenance | append: "+" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.{% else %}If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: patch_part | append: ".x" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.{% endif %}
1010
{% else %}
1111
If you are upgrading from version {{ previous_version }}, you must run the script below
1212
{% endif %}

_includes/docs/user-guide/install/new-docker-compose-upgrade-steps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% assign base_version_parts = base_version | split: "." %}
66
{% assign patch_part = base_version_parts[2] %}
77
{% if patch_status == "true" %}
8-
If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: patch_part | append: ".x" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.
8+
{% if is_latest_patch == "true" %}{% assign prev_maintenance = patch_part | minus: 1 %}If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: prev_maintenance | append: "+" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.{% else %}If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: patch_part | append: ".x" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.{% endif %}
99
{% else %}
1010
If you are upgrading from version {{ previous_version }}, you must run the script below
1111
{% endif %}

_includes/docs/user-guide/install/new-docker-upgrade-steps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{% assign base_version_parts = base_version | split: "." %}
77
{% assign patch_part = base_version_parts[2] %}
88
{% if patch_status == "true" %}
9-
If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: patch_part | append: ".x" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.
9+
{% if is_latest_patch == "true" %}{% assign prev_maintenance = patch_part | minus: 1 %}If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: prev_maintenance | append: "+" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.{% else %}If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: patch_part | append: ".x" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.{% endif %}
1010
{% else %}
1111
If you are upgrading from version {{ previous_version }}, you must run the script below
1212
{% endif %}

_includes/ubuntu-upgrade-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Package installer may ask you to merge your ThingsBoard configuration. It is pre
157157
{% assign base_version_parts = base_version | split: "." %}
158158
{% assign patch_part = base_version_parts[2] %}
159159
{% if patch_status == "true" %}
160-
If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: patch_part | append: ".x" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.
160+
{% if is_latest_patch == "true" %}{% assign prev_maintenance = patch_part | minus: 1 %}If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: prev_maintenance | append: "+" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.{% else %}If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: patch_part | append: ".x" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.{% endif %}
161161
{% else %}
162162
If you are upgrading from version {{ previous_version }}, you must run the script below
163163
{% endif %}

_includes/windows-upgrade-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ net stop thingsboard
154154
{% assign base_version_parts = base_version | split: "." %}
155155
{% assign patch_part = base_version_parts[2] %}
156156
{% if patch_status == "true" %}
157-
If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: patch_part | append: ".x" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.
157+
{% if is_latest_patch == "true" %}{% assign prev_maintenance = patch_part | minus: 1 %}If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: prev_maintenance | append: "+" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.{% else %}If you are upgrading from {{ previous_version }}, you **must** run the script below. However, if you are upgrading from version {{ family | append: "." | append: patch_part | append: ".x" }}, **DO NOT** run the upgrade script; proceed directly to starting the service.{% endif %}
158158
{% else %}
159159
If you are upgrading from version {{ previous_version }}, you must run the script below
160160
{% endif %}

0 commit comments

Comments
 (0)