2016-02-15 16:20:36 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
# Move old CA cert store to new location in /etc, if it exists in /usr
|
|
|
|
|
|
|
|
OLD_CERTDIR=/usr/share/.mono
|
|
|
|
NEW_CERTDIR=/etc/mono/certstore
|
|
|
|
|
|
|
|
if [ "$1" = "upgrade" -o "$1" = "install" ] ; then
|
2016-03-16 12:53:02 +00:00
|
|
|
if [ -d "$OLD_CERTDIR" -a ! -L "$OLD_CERTDIR" ] ; then
|
2016-02-15 16:20:36 +00:00
|
|
|
echo "Found cert store in old location, moving to $NEW_CERTDIR"
|
|
|
|
mkdir -p $NEW_CERTDIR/
|
|
|
|
mv $OLD_CERTDIR/* $NEW_CERTDIR/
|
|
|
|
rm -fr $OLD_CERTDIR/
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
#DEBHELPER#
|
|
|
|
|