![]() |
how to add configuration file to debian package?
hi,
I'm developing an application with qt creator for n900. In my app I need to save some stuff to a config file. This file should be located at "~/.myapp/config.xml". Creating and editing the file at runtime is no problem but how do I add it to the debian package so that it will be installed along with the binary? That should be the standard way in debian, should it? I search google and found many stuff regarding debian packaging but I'm didn't find a suitable answer. |
Re: how to add configuration file to debian package?
Quote:
|
Re: how to add configuration file to debian package?
Quote:
u can create a config to write or u can move a config file after the installation directly using the postinst file to add at the DEBIAN folder ;) |
Re: how to add configuration file to debian package?
So in my postinst.ex file I have now the following code:
Code:
[...] Code:
case "$1" in |
Re: how to add configuration file to debian package?
Quote:
|
Re: how to add configuration file to debian package?
Something doesn't work. The directory and file under /etc isn't created when I test my project in qt creator.
Also when I edit the files in the myapp-build-maemo/debian directory nothing happens. |
Re: how to add configuration file to debian package?
try then with
sudo mkdir or become a root first |
Re: how to add configuration file to debian package?
Quote:
|
Re: how to add configuration file to debian package?
Quote:
|
Re: how to add configuration file to debian package?
ok. now I've renamed them, but it still does not work.
No /etc/myapp folder. |
All times are GMT. The time now is 16:31. |
vBulletin® Version 3.8.8