Re: Runtime directories: in package or by scripts?

2013-03-12 Thread Arno Töll
On 10.03.2013 13:53, Andrey Rahmatullin wrote: On Sun, Mar 10, 2013 at 04:47:42PM +0400, Игорь Пашев wrote: What is the best way to ship such a diretory: in package (d/foo.dirs) or create in postinst script? Why postinst? Because on removal there will be a message cannot remove directory,

Runtime directories: in package or by scripts?

2013-03-10 Thread Игорь Пашев
I'm creating packages with programs which use some directories for persistent data. E. g. dladm will use /etc/dladm to save data in. What is the best way to ship such a diretory: in package (d/foo.dirs) or create in postinst script? -- To UNSUBSCRIBE, email to

Re: Runtime directories: in package or by scripts?

2013-03-10 Thread Andrey Rahmatullin
On Sun, Mar 10, 2013 at 04:24:52PM +0400, Игорь Пашев wrote: I'm creating packages with programs which use some directories for persistent data. E. g. dladm will use /etc/dladm to save data in. The proper path is /var/lib/dladm. What is the best way to ship such a diretory: in package

Re: Runtime directories: in package or by scripts?

2013-03-10 Thread Игорь Пашев
2013/3/10 Andrey Rahmatullin w...@wrar.name: On Sun, Mar 10, 2013 at 04:24:52PM +0400, Игорь Пашев wrote: I'm creating packages with programs which use some directories for persistent data. E. g. dladm will use /etc/dladm to save data in. The proper path is /var/lib/dladm. Sorry, I was not

Re: Runtime directories: in package or by scripts?

2013-03-10 Thread Andrey Rahmatullin
On Sun, Mar 10, 2013 at 04:47:42PM +0400, Игорь Пашев wrote: What is the best way to ship such a diretory: in package (d/foo.dirs) or create in postinst script? Why postinst? Because on removal there will be a message cannot remove directory, if there are file in that directory. Purge