From aea2698ee488688366e917aa1beecf8864a53e23 Mon Sep 17 00:00:00 2001 From: Jo Shields Date: Wed, 16 Mar 2016 12:53:02 +0000 Subject: [PATCH] Fix cert store mover (symlinks to directories are -d) Former-commit-id: 2427082ad9471ce780a961266f4f865fcf4ddf7d --- debian/libmono-security4.0-cil.preinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/libmono-security4.0-cil.preinst b/debian/libmono-security4.0-cil.preinst index 845136caf4..42fe00aa62 100644 --- a/debian/libmono-security4.0-cil.preinst +++ b/debian/libmono-security4.0-cil.preinst @@ -6,7 +6,7 @@ OLD_CERTDIR=/usr/share/.mono NEW_CERTDIR=/etc/mono/certstore if [ "$1" = "upgrade" -o "$1" = "install" ] ; then - if [ -d "$OLD_CERTDIR" ] ; then + if [ -d "$OLD_CERTDIR" -a ! -L "$OLD_CERTDIR" ] ; then echo "Found cert store in old location, moving to $NEW_CERTDIR" mkdir -p $NEW_CERTDIR/ mv $OLD_CERTDIR/* $NEW_CERTDIR/