migrate_to_bullseye: move /home/yunohost.conf to /var/cache/yunohost/regenconf

This commit is contained in:
Alexandre Aubin 2021-12-08 22:11:02 +01:00
parent a124bbc790
commit b617c799d0

View file

@ -84,6 +84,13 @@ class MyMigration(Migration):
os.system("mv /usr/share/yunohost/yunohost-config/ssl/yunoCA /usr/share/yunohost/ssl") os.system("mv /usr/share/yunohost/yunohost-config/ssl/yunoCA /usr/share/yunohost/ssl")
rm("/usr/share/yunohost/yunohost-config", recursive=True, force=True) rm("/usr/share/yunohost/yunohost-config", recursive=True, force=True)
#
# /home/yunohost.conf -> /var/cache/yunohost/regenconf
#
if os.path.exists("/home/yunohost.conf"):
os.system("mv /home/yunohost.conf /var/cache/yunohost/regenconf")
rm("/home/yunohost.conf", recursive=True, force=True)
# #
# Main upgrade # Main upgrade
# #