YunoHost-Apps / gemserv_ynh

A gemini server written in rust.
MIT License
10 stars 2 forks source link

server.toml should always be at the beginning of config.toml #14

Closed OniriCorpe closed 2 years ago

OniriCorpe commented 2 years ago

Problem

Solution

PR Status

yunohost-bot commented 2 years ago

[Bullseye :horse:] Alrighty! Test Badge

yunohost-bot commented 2 years ago

Alrighty! Test Badge

yalh76 commented 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 ?

OniriCorpe commented 2 years ago

ah good point! it's done

yalh76 commented 2 years ago

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

PS: ynh_add_config do a ynh_store_file_checksum

OniriCorpe commented 2 years ago

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)

OniriCorpe commented 2 years ago

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

yunohost-bot commented 2 years ago

:rocket: Test Badge

yalh76 commented 2 years ago

!testme

yunohost-bot commented 2 years ago

:v: Test Badge