I am distributing one of my applications using the .deb package, but have a problem with one of the files.
The distribution file includes a database file that is constantly updated by the application, with a new installation I want the installer to copy a new, empty db file to the users system, but when updating, I want the installer to leave the existing copy in place (overwriting will lose all data users).
Currently, I have included the file in the file "conffiles", so the installer always asks the user whether to overwrite the existing file or not, but this is not what I want - overwriting the file will never be correct and I am worried that the user may choose wrong option during update and their data hoses.
Is there a way to tell the installer that if the db file already exists, just leave it alone and do not ask the user what to do?
source
share