diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-09-05 03:51:26 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-09-05 03:55:53 -0300 |
commit | f23dfdc81b1c993520a9ab7cc12263efa31cd9bc (patch) | |
tree | 58bbaaddbffc625d760688fa54454f53ffcb186a /libre/cacert-dot-org/cacert-dot-org.install | |
parent | dc3844d0ed5d92fbcd919eced9f275cab3de14a7 (diff) | |
download | abslibre-f23dfdc81b1c993520a9ab7cc12263efa31cd9bc.tar.gz abslibre-f23dfdc81b1c993520a9ab7cc12263efa31cd9bc.tar.bz2 abslibre-f23dfdc81b1c993520a9ab7cc12263efa31cd9bc.zip |
rename cacert-dot-org to ca-certificates-cacert and keep it on [libre] temporally because there is a Arch official package but on [testing] only, add cacert-dot-org in conflicts and replaces array of pacman package to begin use ca-certificates-cacert
Diffstat (limited to 'libre/cacert-dot-org/cacert-dot-org.install')
-rw-r--r-- | libre/cacert-dot-org/cacert-dot-org.install | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/libre/cacert-dot-org/cacert-dot-org.install b/libre/cacert-dot-org/cacert-dot-org.install deleted file mode 100644 index eb11f6607..000000000 --- a/libre/cacert-dot-org/cacert-dot-org.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 -} |