Re: config file writeable by the own app
On Wed, Apr 30, 2014 at 6:17 AM, Arturo Borrero Gonzalez wrote:
> At execution time, the upstream code expects a config file to be
> writeable at '../priv/ip_config'.
> This file is meant to store the DB credentials and URI. The file can
> be modified by the user using the webapp.
>
> Of course, its a plain config file, and it should be at /etc.
>
> So I see two options:
> * ln -s /etc/config_file /usr/share/webapp/priv/ip_config
> * give write permission in postinst (lintian complains if I give
> write perms at build time)
It sounds like the app only allows one instance of the app on the
machine at once? If so your proposed solution (symlink to /etc, make
the file in /etc writable) sounds correct.
--
bye,
pabs
http://wiki.debian.org/PaulWise
Reply to: