summaryrefslogtreecommitdiff
path: root/libre/ca-certificates-cacert/ca-certificates-cacert.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-23 11:11:38 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-23 11:11:38 -0300
commit741007cf367f6f3d5256a3fc29c12e1b19205241 (patch)
tree3d03d24c228a6a0ea4d10b575608bcf34808694b /libre/ca-certificates-cacert/ca-certificates-cacert.install
parent795ea5b0ae2d09ec7bc095a8a69b79481c8a2be1 (diff)
downloadabslibre-741007cf367f6f3d5256a3fc29c12e1b19205241.tar.gz
abslibre-741007cf367f6f3d5256a3fc29c12e1b19205241.tar.bz2
abslibre-741007cf367f6f3d5256a3fc29c12e1b19205241.zip
ca-certificates-cacert: Arch official package has been released on [core]
Diffstat (limited to 'libre/ca-certificates-cacert/ca-certificates-cacert.install')
-rw-r--r--libre/ca-certificates-cacert/ca-certificates-cacert.install26
1 files changed, 0 insertions, 26 deletions
diff --git a/libre/ca-certificates-cacert/ca-certificates-cacert.install b/libre/ca-certificates-cacert/ca-certificates-cacert.install
deleted file mode 100644
index eb11f6607..000000000
--- a/libre/ca-certificates-cacert/ca-certificates-cacert.install
+++ /dev/null
@@ -1,26 +0,0 @@
-post_install() {
- #UPDATE FILE NAMES IN ca-certificates.conf IF THEY'RE OUT OF DATE
- [[ `grep -c "mozilla/cacert.org" /etc/ca-certificates.conf` -gt 0 ]] && sed -i 's/mozilla\/cacert\.org/cacert\.org\/cacert\.org/g' /etc/ca-certificates.conf
- [[ `grep -c "cacert.org/cacert.org-" /etc/ca-certificates.conf` -gt 0 ]] && sed -i 's/cacert\.org\/cacert\.org-/cacert\.org\/cacert\.org_/g' /etc/ca-certificates.conf
-
- #ADD THE CERTIFICATES TO ca-certificates.conf IF THEY'RE MISSING
- [[ `grep -c "cacert.org/cacert.org_root.crt" /etc/ca-certificates.conf` -eq 0 ]] && echo "cacert.org/cacert.org_root.crt" >> /etc/ca-certificates.conf
- [[ `grep -c "cacert.org/cacert.org_class3.crt" /etc/ca-certificates.conf` -eq 0 ]] && echo "cacert.org/cacert.org_class3.crt" >> /etc/ca-certificates.conf
-
- #UPDATE THE CERTIFICATES BASED ON ca-certificates.conf
- update-ca-certificates --fresh
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- grep -v "cacert.org" /etc/ca-certificates.conf > /dev/shm/ca-certificates.conf.tmp
- if [[ -s /dev/shm/ca-certificates.conf.tmp ]]; then
- mv /dev/shm/ca-certificates.conf.tmp /etc/ca-certificates.conf
- update-ca-certificates --fresh
- else
- echo "An error occurred that prevented the cacert.org certificates from being removed from /etc/ca-certificates.conf, please remove them manually, then run update-ca-certificates --fresh"
- fi
-}