mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Cleanup legacy
This commit is contained in:
parent
b33a47f27d
commit
dda095dc15
1 changed files with 0 additions and 12 deletions
12
src/tools.py
12
src/tools.py
|
@ -292,18 +292,6 @@ def tools_regen_conf(
|
||||||
):
|
):
|
||||||
|
|
||||||
from yunohost.regenconf import regen_conf
|
from yunohost.regenconf import regen_conf
|
||||||
|
|
||||||
# Make sure the settings are migrated before running the migration,
|
|
||||||
# which may otherwise fuck things up such as the ssh config ...
|
|
||||||
# We do this here because the regen-conf is called before the migration in debian/postinst
|
|
||||||
if os.path.exists("/etc/yunohost/settings.json") and not os.path.exists(
|
|
||||||
"/etc/yunohost/settings.yml"
|
|
||||||
):
|
|
||||||
try:
|
|
||||||
tools_migrations_run(["0025_global_settings_to_configpanel"])
|
|
||||||
except Exception as e:
|
|
||||||
logger.error(e)
|
|
||||||
|
|
||||||
return regen_conf(names, with_diff, force, dry_run, list_pending)
|
return regen_conf(names, with_diff, force, dry_run, list_pending)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue