OCaml 4.14.0 rebuild
[arch-packages.git] / ca-certificates / trunk / ca-certificates-utils.install
blobe781c00fecee1cbf8d703142f8b372ac5bb0d060
1 pre_upgrade() {
2   if (( $(vercmp $2 20210603) < 0 )); then
3     local olddir=/etc/ca-certificates/trust-source/blacklist
4     local newdir=/etc/ca-certificates/trust-source/blocklist
5     cat <<MSG
6   > $olddir has been renamed to
7     $newdir
8 MSG
10     if [[ ! -e $olddir ]]; then
11       :  # Do nothing
12     elif [[ -e $newdir ]]; then
13       cat <<MSG
14   > WARNING: $newdir already exists.
15     You must migrate your blocked certificates manually.
16 MSG
17     else
18       mv -Tn $olddir $newdir
19     fi
20   fi
23 # vim:set ts=2 sw=2 et: