[ovs-dev] Bug#661090: Bug#661090: [PATCH] debian: Move PKI directory to FHS-compliant location.

Chris Wright chrisw at sous-sol.org
Fri Mar 2 00:10:55 UTC 2012


* Ben Pfaff (blp at nicira.com) wrote:
> On Fri, Mar 02, 2012 at 12:35:09AM +0100, Andreas Beckmann wrote:
> > On 2012-03-02 00:11, Ben Pfaff wrote:
> > > +            mv /usr/share/openvswitch/pki /var/lib/openvswitch
> > > +            ln -s /usr/share/openvswitch/pki /var/lib/openvswitch
> > 
> > That link goes in the wrong direction ...
> 
> I get that wrong on the first try about half the time.  Thanks.
> (Obviously I haven't tested this yet.)
> 
> > Should the compat symlink be removed during purge?
> 
> Sounds like a good idea, thanks, I made that change.  Incremental
> patch follows:
> 
> diff --git a/debian/openvswitch-pki.postinst b/debian/openvswitch-pki.postinst
> index 40fff04..7cd6bbb 100755
> --- a/debian/openvswitch-pki.postinst
> +++ b/debian/openvswitch-pki.postinst
> @@ -24,7 +24,7 @@ case "$1" in
>          if test -d /usr/share/openvswitch/pki && \
>             test ! -e /var/lib/openvswitch/pki; then
>              mv /usr/share/openvswitch/pki /var/lib/openvswitch
> -            ln -s /usr/share/openvswitch/pki /var/lib/openvswitch
> +            ln -s /var/lib/openvswitch /usr/share/openvswitch/pki

Should it be:

-            ln -s /usr/share/openvswitch/pki /var/lib/openvswitch
+            ln -s /var/lib/openvswitch/pki /usr/share/openvswitch

$ ls -l /usr/share/openvswitch/pki
/usr/share/openvswitch/pki -> /var/lib/openvswitch/pki







More information about the dev mailing list