YunoHost-Apps / conduit_ynh

Conduit packaged for YunoHost
https://conduit.rs/
Apache License 2.0
3 stars 6 forks source link

Problem update 0.7 #30

Closed getzze closed 4 months ago

getzze commented 5 months ago

I updated from 0.6 to 0.7 but then I lost all my accounts. I used the backup to restore them. It seems the upgrades not only changes the conduit binary, but it also deletes everything in the /var/www/conduit folder. According to upstream, to update Conduit you only need to update the binary.

Also, removing the app makes you lose the database with the accounts.

I think it would be better to have only conduit and conduit.toml in the /var/www/conduit folder and store the database files in a permanent folder, i.e. that is not erased when updating or removing the app. There is an option in conduit.toml to specify an alternative folder for the database. [EDIT] I just thought that the database needs to be backed up, so it's good if it's in /var/www/conduit but then in a subfolder that is not touched when updating ?

In the meanwhile the upgrade to 0.7 should be rolled back.

getzze commented 4 months ago

The update worked with the fix. Thanks!