Closed OniriCorpe closed 2 years ago
Shouldn't we remove or rename /etc/$app/config.d/server.toml
during upgrade ?
Or it will be integrated in config.toml
two times ?
ah good point! it's done
ah good point! it's done
I think we could try something more future proof, for example:
checking if /etc/$app/config.d/server.toml.head
exist
if not
/etc/$app/config.d/server.toml
to /etc/$app/config.d/server.toml.head
/etc/$app/config.d/server.toml
/etc/$app/config.d/server.toml.head
PS: ynh_add_config do a ynh_store_file_checksum
Except for deleting checksum for /etc/$app/config.d/server.toml
I'm not sure it's really pertinent but as you want :)
(for renaming
the file is finally replaced so it's equivalent, and for creating the checksum
the new ynh_add_config
makes this already for the new file)
I have done what is necessary to remove the checksum and improve the deletion of the server.toml
file (which fixes the error for [Test 4/7] Upgrade from the same version)
If you want us to do the rest too, don't hesitate
!testme
Problem
server.toml
is not put at the beginning of the generatedconfig.toml
, which puts the server in errorSolution
server.toml
is at the beginning of the generatedconfig.toml
PR Status