mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Yolo fix to avoid regenerating glances' conf during upgrade to 3.8
This commit is contained in:
parent
0e98d37c49
commit
e463e282f2
1 changed files with 9 additions and 0 deletions
|
@ -131,6 +131,15 @@ def regen_conf(operation_logger, names=[], with_diff=False, force=False, dry_run
|
||||||
show_info=False)['hooks']
|
show_info=False)['hooks']
|
||||||
names.remove('ssh')
|
names.remove('ssh')
|
||||||
|
|
||||||
|
# Dirty hack for legacy code : avoid attempting to regen the conf for
|
||||||
|
# glances because it got removed ... This is only needed *once*
|
||||||
|
# during the upgrade from 3.7 to 3.8 because Yunohost will attempt to
|
||||||
|
# regen glance's conf *before* it gets automatically removed from
|
||||||
|
# services.yml (which will happens only during the regen-conf of
|
||||||
|
# 'yunohost', so at the very end of the regen-conf cycle) Anyway,
|
||||||
|
# this can be safely removed once we're in >= 4.0
|
||||||
|
names.remove("glances")
|
||||||
|
|
||||||
pre_result = hook_callback('conf_regen', names, pre_callback=_pre_call)
|
pre_result = hook_callback('conf_regen', names, pre_callback=_pre_call)
|
||||||
|
|
||||||
# Keep only the hook names with at least one success
|
# Keep only the hook names with at least one success
|
||||||
|
|
Loading…
Add table
Reference in a new issue