YunoHost-Apps / akkoma_ynh

Social media based on ActivityPub, fork of Pleroma
https://akkoma.social/
GNU Affero General Public License v3.0
15 stars 6 forks source link

Config customization lost after upgrade #25

Open bugsysop opened 1 year ago

bugsysop commented 1 year ago

Problem:

When we upgrade Akkoma the configuration is reset to default: in fact we loose all custom parameters defined directly in Admin FE. Included the choice of a custom frontend.

This is in fact a dirty side effect of running migrate_to_db at every upgrade.

Solution:

Exec migrate_to_db only at install and not at upgrade.

lapineige commented 1 year ago

Strangely, I did not have any default frontend (Mangane) change after the upgrade :thinking:

bugsysop commented 1 year ago

Solved by 71cd0b7b70fd5bcaf6002381d7bc16bbb73f95fb

twizzayy commented 1 year ago

This still occurred for me. Moving from 3.7.1 to 3.9.3.

I configure my instance from the config.exs file. So configs, emojis, statuses, and uploads persist. But all theming is lost after an upgrade.

lapineige commented 1 year ago

Are the time located in /home/yunohost.app/akkoma still there ?

twizzayy commented 1 year ago

My custom theme was removed from

/home/yunohost.app/akkoma after upgrade.

FWIW this has been an ongoing issue with pleroma_ynh for a while now too.

I just keep backups of the important files handy and rebuild the theme after each update.

lapineige commented 1 year ago

Too bad, I was thinking we fixed this…