slackware-current/source/n/ca-certificates/doinst.sh
Patrick J Volkerding 467ef177c6 Wed Oct 6 00:02:15 UTC 2021
a/glibc-zoneinfo-2021c-noarch-1.txz:  Upgraded.
a/util-linux-2.37.2-x86_64-4.txz:  Rebuilt.
  Removed broken /usr/share/bash-completion/completions/runuser symlink.
  Thanks to marav.
n/ca-certificates-20211005-noarch-1.txz:  Upgraded.
  Don't install /etc/ca-certificates.conf as a .new file - it's an auto-
  generated list that will just end up suffering a mismatch with the files
  included in the package. Thanks to Weber Kai.
xap/mozilla-firefox-91.2.0esr-x86_64-1.txz:  Upgraded.
  This release contains security fixes and improvements.
  For more information, see:
    https://www.mozilla.org/en-US/firefox/91.2.0/releasenotes/
    https://www.mozilla.org/security/advisories/mfsa2021-45/
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-38496
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-38497
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-38498
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32810
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-38500
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-38501
  (* Security fix *)
2021-10-06 08:59:56 +02:00

23 lines
754 B
Bash

config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
# Actually, with this being auto-generated and strongly tied to the
# filelist in this package, it's not a good idea to try to preserve
# this config file. For local certs, simply install them in the
# /usr/local/share/ca-certificates directory.
#config etc/ca-certificates.conf.new
if [ -x /usr/sbin/update-ca-certificates ]; then
/usr/sbin/update-ca-certificates --fresh 1> /dev/null 2> /dev/null
fi