diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2023-01-10 21:32:00 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2023-01-10 23:35:14 +0100 |
commit | 3fb38a9206728a3fa09f4c6bdb26f16fdeebfd58 (patch) | |
tree | ff64c8849ec3b8dd3b505e757f0deaab58ba9a8e /source/n/ca-certificates/doinst.sh | |
parent | e33171c1dcd46c51e778c9de2cc78586b3a00b9d (diff) | |
download | current-3fb38a9206728a3fa09f4c6bdb26f16fdeebfd58.tar.gz current-3fb38a9206728a3fa09f4c6bdb26f16fdeebfd58.tar.xz |
Tue Jan 10 21:32:00 UTC 202320230110213200
a/kernel-firmware-20230110_a1ad1d5-noarch-1.txz: Upgraded.
n/ca-certificates-20221205-noarch-2.txz: Rebuilt.
Make sure that if we're installing this package on another partition (such as
when using installpkg with a --root parameter) that the updates are done on
that partition. Thanks to fulalas.
x/libva-utils-2.17.1-x86_64-1.txz: Upgraded.
xfce/libxfce4util-4.18.1-x86_64-1.txz: Upgraded.
xfce/thunar-4.18.2-x86_64-1.txz: Upgraded.
Diffstat (limited to '')
-rw-r--r-- | source/n/ca-certificates/doinst.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/n/ca-certificates/doinst.sh b/source/n/ca-certificates/doinst.sh index 9e50c5598..cf1f984b5 100644 --- a/source/n/ca-certificates/doinst.sh +++ b/source/n/ca-certificates/doinst.sh @@ -17,7 +17,11 @@ config() { # /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 +# We don't want to run this from the installer because we've got a script +# that runs it after all the packages are installed. But if we do run it, +# we should chroot into the target partition to make sure the updates are +# done in the correct location (and not on the calling partition): +if [ ! -r /usr/lib/setup/setup ]; then + chroot . /usr/sbin/update-ca-certificates --fresh 1> /dev/null 2> /dev/null fi |