Skip to content
Snippets Groups Projects
Commit fc04a30adceb authored by Balasankar 'Balu' C's avatar Balasankar 'Balu' C
Browse files

Make 15.0 minimum required version to upgrade to 15.x


Prevents upgrade if the currently installed package is not
at least 15.0.x.

Changelog: changed

Signed-off-by: default avatarBalasankar "Balu" C <balasankar@gitlab.com>
parent f746dc532172
No related branches found
No related tags found
2 merge requests!76heptapod#711: 0.34 is the new stable,!73Sync up to upstream Omnibus GitLab 15.1
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
upgrade_check() { upgrade_check() {
# Minimum version from which jumps are permitted to current version. # Minimum version from which jumps are permitted to current version.
# Follows https://docs.gitlab.com/ee/update/index.html#upgrade-paths # Follows https://docs.gitlab.com/ee/update/index.html#upgrade-paths
MIN_VERSION=14.10 MIN_VERSION=15.0
if [ -n "${OLD_VERSION_STRING}" ] ; then if [ -n "${OLD_VERSION_STRING}" ] ; then
# Checking # Checking
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
then then
GITLAB_UPGRADE='true' GITLAB_UPGRADE='true'
new_version=$(awk '/^gitlab-(ce|ee|jh)/ {print $NF}' /opt/gitlab/version-manifest.txt) new_version=$(awk '/^gitlab-(ce|ee|jh)/ {print $NF}' /opt/gitlab/version-manifest.txt)
MIN_VERSION="14.10" gitlab-ctl upgrade-check "${old_version}" "${new_version}" MIN_VERSION="15.0" gitlab-ctl upgrade-check "${old_version}" "${new_version}"
fi fi
# Copy gitlab.rb for the first time # Copy gitlab.rb for the first time
......
module GitlabCtl module GitlabCtl
class UpgradeCheck class UpgradeCheck
MIN_VERSION = ENV['MIN_VERSION'] || '14.10'.freeze MIN_VERSION = ENV['MIN_VERSION'] || '15.0'.freeze
class <<self class <<self
def valid?(ov, nv) def valid?(ov, nv)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment