mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
bullseye->bookworm: explicitly validate that we're on yunohost 12.x at the end of the migration
This commit is contained in:
parent
2d3dddc51a
commit
8b56983171
1 changed files with 3 additions and 0 deletions
|
@ -267,6 +267,9 @@ class MyMigration(Migration):
|
|||
# For some reason subprocess doesn't like the redirections so we have to use bash -c explicity...
|
||||
subprocess.check_call(["bash", "-c", cmd])
|
||||
|
||||
if self.yunohost_major_version() != N_CURRENT_YUNOHOST + 1:
|
||||
raise YunohostError("Still on YunoHost 11.x at the end of the migration, eh? Sounds like the migration didn't really complete!?", raw_msg=True)
|
||||
|
||||
def debian_major_version(self):
|
||||
# The python module "platform" and lsb_release are not reliable because
|
||||
# on some setup, they may still return Release=9 even after upgrading to
|
||||
|
|
Loading…
Add table
Reference in a new issue