pcp
[Top] [All Lists]

Moving pcp tmp dir around

To: pcp@xxxxxxxxxxx
Subject: Moving pcp tmp dir around
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Thu, 06 Dec 2012 20:10:36 +1100
With t-o-t packages on LinuxMint (so debian -> ubuntu genealogy), I see
this ...

dpkg: warning: unable to delete old directory '/var/lib/pcp/tmp/mmv':
Directory not empty
dpkg: warning: unable to delete old directory '/var/lib/pcp/tmp':
Directory not empty

This is a variant of something Frank mentioned earlier in the context of
the proposed relocation of the configuration files (e.g. pmcd.conf).

I think we need uber preinst and postinst scripts to handle these sort
of migrations.

In the case above, the preinst script needs to cleanout the contents
of /var/lib/pcp/tmp and /var/lib/pcp/tmp/mmv so the rmdir from the
package upgrade will work.

<Prev in Thread] Current Thread [Next in Thread>