Fix cert store mover (symlinks to directories are -d)
Former-commit-id: 2427082ad9471ce780a961266f4f865fcf4ddf7d
This commit is contained in:
parent
58f87c08ce
commit
aea2698ee4
2
debian/libmono-security4.0-cil.preinst
vendored
2
debian/libmono-security4.0-cil.preinst
vendored
@ -6,7 +6,7 @@ OLD_CERTDIR=/usr/share/.mono
|
|||||||
NEW_CERTDIR=/etc/mono/certstore
|
NEW_CERTDIR=/etc/mono/certstore
|
||||||
|
|
||||||
if [ "$1" = "upgrade" -o "$1" = "install" ] ; then
|
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"
|
echo "Found cert store in old location, moving to $NEW_CERTDIR"
|
||||||
mkdir -p $NEW_CERTDIR/
|
mkdir -p $NEW_CERTDIR/
|
||||||
mv $OLD_CERTDIR/* $NEW_CERTDIR/
|
mv $OLD_CERTDIR/* $NEW_CERTDIR/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user