summaryrefslogtreecommitdiff
path: root/libre/ca-certificates-utils/ca-certificates-utils.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-05 04:29:10 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-05 04:29:10 -0300
commit72293ab90315344dc711ce226a1a071b9009ad0f (patch)
tree0916361c64326ad92e26a7dee5d6e620e478cb46 /libre/ca-certificates-utils/ca-certificates-utils.install
parent0755a3a533723729bc7fa4cbbca5020c87ddb09b (diff)
downloadabslibre-72293ab90315344dc711ce226a1a071b9009ad0f.tar.gz
abslibre-72293ab90315344dc711ce226a1a071b9009ad0f.tar.bz2
abslibre-72293ab90315344dc711ce226a1a071b9009ad0f.zip
ca-certificates-utils: add new package to [libre] because it's a dependency of ca-certificates-cacert
Diffstat (limited to 'libre/ca-certificates-utils/ca-certificates-utils.install')
-rw-r--r--libre/ca-certificates-utils/ca-certificates-utils.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/libre/ca-certificates-utils/ca-certificates-utils.install b/libre/ca-certificates-utils/ca-certificates-utils.install
new file mode 100644
index 000000000..8e8a483ab
--- /dev/null
+++ b/libre/ca-certificates-utils/ca-certificates-utils.install
@@ -0,0 +1,18 @@
+export LC_ALL=C
+
+post_install() {
+ usr/bin/update-ca-certificates --fresh >/dev/null 2>&1
+}
+
+post_upgrade() {
+ usr/bin/update-ca-certificates --fresh >/dev/null 2>&1
+}
+
+pre_remove() {
+ usr/bin/update-ca-certificates --fresh >/dev/null 2>&1
+}
+
+post_remove() {
+ # remove the cert file if it is empty
+ [[ -s etc/ssl/certs/ca-certificates.crt ]] || rm -f etc/ssl/certs/ca-certificates.crt
+}