From 70fdd1c6c2e7b88465e4cac42ec5b2f083785c76 Mon Sep 17 00:00:00 2001 From: Jo Shields Date: Thu, 15 Jan 2015 16:44:03 +0000 Subject: [PATCH] Add postinst script to ca-certificates-mono, to handle versions of Ubuntu whose ca-certificates does not contain the update-ca-certificates trigger (i.e. anything before Trusty) Former-commit-id: f6cc81252f86c8ef8949e201f103c3054b0cea5e --- debian/ca-certificates-mono.postinst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 debian/ca-certificates-mono.postinst diff --git a/debian/ca-certificates-mono.postinst b/debian/ca-certificates-mono.postinst new file mode 100755 index 0000000000..742cd84f19 --- /dev/null +++ b/debian/ca-certificates-mono.postinst @@ -0,0 +1,14 @@ +#!/bin/bash + +if [ "x$1" == "xconfigure" ] && [ -x /usr/sbin/update-ca-certificates ]; then + if [ ! -f /var/lib/dpkg/triggers/update-ca-certificates ]; then + /usr/sbin/update-ca-certificates + else + /usr/bin/dpkg-trigger update-ca-certificates + fi +fi + +#DEBHELPER# + +exit 0 +