YunoHost-Apps / cryptpad_ynh

CryptPad package for YunoHost
https://cryptpad.fr
GNU General Public License v3.0
27 stars 21 forks source link

Upgrade loses admin key from config.js #184

Open webmink opened 1 year ago

webmink commented 1 year ago

Describe the bug

When running any upgrade to CryptPad on Yunohost, the admin key is lost from config.js

Context

Steps to reproduce

Expected behavior

Install should preserve admin key and perhaps some other changes to config.js that are necessary for normal operation

Logs

https://paste.yunohost.org/raw/atukamafes

webmink commented 1 year ago

Potential fix: https://github.com/YunoHost-Apps/cryptpad_ynh/pull/185

Ddataa commented 1 year ago

yes it is under construction...

webmink commented 1 year ago

Did this get integrated in the recent release? I still had to update my admin key when I upgraded...

tituspijean commented 3 months ago

It has been implemented in https://github.com/YunoHost-Apps/cryptpad_ynh/pull/185, but somehow disappeared from the code later. In any case, the ynh_read_var_in_file helper does not seem to be able to read that variable. Maybe we need to have a configuration panel for that?