mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Make sure that openssl is not from sury before continuing the migration
This commit is contained in:
parent
cb880ede9f
commit
1a675b2b56
1 changed files with 6 additions and 1 deletions
|
@ -99,7 +99,12 @@ class MyMigration(Migration):
|
||||||
logger.info("Downgrading openssl version from %s to %s ..." % (openssl_version, new_version))
|
logger.info("Downgrading openssl version from %s to %s ..." % (openssl_version, new_version))
|
||||||
self.apt_install('openssl=%s --allow-downgrades' % new_version)
|
self.apt_install('openssl=%s --allow-downgrades' % new_version)
|
||||||
else:
|
else:
|
||||||
logger.warning("Could not identify which version of openssl to install")
|
logger.error("Could not identify which version of openssl to install")
|
||||||
|
|
||||||
|
# Validate that openssl's version is not from sury anymore
|
||||||
|
openssl_version = check_output('dpkg -s openssl | grep "^Version: " | cut -d " " -f 2')
|
||||||
|
if "gbp" in openssl_version:
|
||||||
|
raise YunohostError("Openssl version is from sury's repository and needs to be downgraded to a version from the official debian's repositories.")
|
||||||
|
|
||||||
#
|
#
|
||||||
# Yunohost upgrade
|
# Yunohost upgrade
|
||||||
|
|
Loading…
Add table
Reference in a new issue