mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
migrate_to_bullseye: Remove legacy postgresql service record added by helpers, will now be dynamically handled by the core in bullseye
This commit is contained in:
parent
107bd854eb
commit
c4732b776e
1 changed files with 8 additions and 0 deletions
|
@ -15,6 +15,7 @@ from yunohost.utils.packages import (
|
||||||
get_ynh_package_version,
|
get_ynh_package_version,
|
||||||
_list_upgradable_apt_packages,
|
_list_upgradable_apt_packages,
|
||||||
)
|
)
|
||||||
|
from yunohost.services import _get_services, _save_services
|
||||||
|
|
||||||
logger = getActionLogger("yunohost.migration")
|
logger = getActionLogger("yunohost.migration")
|
||||||
|
|
||||||
|
@ -124,6 +125,13 @@ class MyMigration(Migration):
|
||||||
# during 0022_php73_to_php74_pools migration
|
# during 0022_php73_to_php74_pools migration
|
||||||
self.apt_install("php7.4-fpm -o Dpkg::Options::='--force-confmiss'")
|
self.apt_install("php7.4-fpm -o Dpkg::Options::='--force-confmiss'")
|
||||||
|
|
||||||
|
# Remove legacy postgresql service record added by helpers,
|
||||||
|
# will now be dynamically handled by the core in bullseye
|
||||||
|
services = _get_services()
|
||||||
|
if "postgresql" in services:
|
||||||
|
del services["postgresql"]
|
||||||
|
_save_services(services)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Yunohost upgrade
|
# Yunohost upgrade
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue