Move cert store to new location, for Debian compatibility
Former-commit-id: 85c8a623ba2c33e6eb5f1f9926f96c0ec626a13c
This commit is contained in:
parent
0c926a3c8e
commit
605b987c38
1
debian/libmono-security4.0-cil.dirs
vendored
Normal file
1
debian/libmono-security4.0-cil.dirs
vendored
Normal file
@ -0,0 +1 @@
|
||||
/etc/mono/certstore
|
1
debian/libmono-security4.0-cil.links
vendored
Normal file
1
debian/libmono-security4.0-cil.links
vendored
Normal file
@ -0,0 +1 @@
|
||||
/etc/mono/certstore /usr/share/.mono
|
18
debian/libmono-security4.0-cil.preinst
vendored
Normal file
18
debian/libmono-security4.0-cil.preinst
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
#!/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
|
||||
if [ -d "$OLD_CERTDIR" ] ; then
|
||||
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#
|
||||
|
Loading…
x
Reference in New Issue
Block a user