linksmart / thing-directory

Directory of Web of Things (WoT) Thing Descriptions. Maintained fork at https://github.com/TinyIoT/thing-directory
Apache License 2.0
21 stars 4 forks source link

Upgrading debian package replaces the config file #25

Closed farshidtz closed 4 years ago

farshidtz commented 4 years ago

Upgrading debian package replaces the config file with a new one even if changed locally by the user.

Any way around this?

I've see some package installers ask the user to leave the config files intact.

blubbfish commented 4 years ago

there is a way for debian packages to check if the file in the update packet was changed and differ from the version that is installed.

blubbfish commented 4 years ago

For a quick fix the default filename is now settings.json.example and this file will be replace when update. After an installation you must copy that to settings.json and customise it.

blubbfish commented 4 years ago

https://www.debian.org/doc/manuals/maint-guide/dother.en.html#conffiles

blubbfish commented 4 years ago

postinst scipt now uses ucf to compare configfiles